/* Navegación y pie de página compartidos por todas las páginas. */
body { margin: 0; font-family: Inter, system-ui, "Segoe UI", sans-serif; }
.shell-wrap { width: min(calc(100% - 3rem), 74rem); margin-inline: auto; box-sizing: border-box; }
header.site-shell-header { background: #FFFFFF; color: #002B5B; border-bottom: 1px solid #D9E2ED; }
.shell-header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-block: .85rem; }
.shell-brand { color: #002B5B; font-size: 1.05rem; font-weight: 750; line-height: 1.6; letter-spacing: -.035em; text-decoration: none; }
nav.shell-main-nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; align-items: center; margin: 0; padding: 0; background: transparent; box-shadow: none; }
.shell-main-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; margin: 0; color: #002B5B; font-size: .9rem; font-weight: 600; line-height: 1.6; text-decoration: none; }
.shell-main-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.shell-main-nav .shell-contact-link { text-decoration: underline; text-decoration-color: #F57C00; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.site-shell-header a:focus-visible { outline: 2px solid #002B5B; outline-offset: 4px; }
footer.site-shell-footer {
  --ambient-ridge: #3a83ca4d;
  --ambient-lightwash: #1e569c4c;
  --ambient-secondary: #387fbd38;
  --ambient-depth: #00132f50;
  --ambient-texture: #b8dbff0e;
  margin: 0;
  padding: clamp(1.6rem, 4vw, 2.5rem) 0 1rem;
  background: linear-gradient(120deg, #001e40, #002B5B 55%, #123b63);
  color: #FFFFFF;
  text-align: center;
}
.shell-footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 60rem;
  margin-inline: auto;
  text-align: left;
}
.shell-contact-copy h2 {
  margin: 0;
  color: #FFFFFF;
  font: inherit;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.shell-contact-copy p {
  margin: .45rem 0 0;
  color: #d6e4f2;
  font-size: .9375rem;
  line-height: 1.6;
}
.shell-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.site-shell-footer .shell-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: .85rem;
  border: 1px solid #ffffff60;
  border-radius: .4rem;
  white-space: nowrap;
  font-weight: 650;
}
.site-shell-footer .shell-contact-email { background: #FFFFFF; color: #002B5B; }
.site-shell-footer .shell-contact-email:hover { background: #e7f2ff; color: #002B5B; }
.site-shell-footer .shell-contact-whatsapp:hover { background: #ffffff16; color: #FFFFFF; }
.shell-footer-social { display: flex; justify-content: center; margin-block: 1rem .1rem; }
.shell-footer-bottom { text-align: center; }
.site-shell-footer small { font-size: .875rem; color: #FFFFFF; line-height: 1.6; }
.site-shell-footer nav { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; background: transparent; box-shadow: none; }
.site-shell-footer a { color: #FFFFFF; text-decoration: none; margin: 0; line-height: 1.6; font-weight: 500; font-size: .875rem; transition: color .2s ease; }
.site-shell-footer a:hover { color: #F57C00; }
.site-shell-footer a:focus-visible { outline: 2px solid #F57C00; outline-offset: 3px; }
.shell-social-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; }
.site-shell-footer .shell-social-nav a { color: #FFFFFF; transition: color .22s ease; display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; }
.shell-social-icon { display: block; flex: none; width: 1.25rem; height: 1.25rem; fill: currentColor; pointer-events: none; transition: transform .22s ease; }
.shell-resource-nav { justify-content: center; gap: 0 1rem; }
.shell-resource-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.shell-footer-bottom small { display: block; margin-block: .25rem; color: #c6d9ea; }
@media (max-width: 32rem) {
  .shell-wrap { width: calc(100% - 2rem); }
  .shell-header-inner { flex-direction: column; align-items: flex-start; gap: 0; }
  nav.shell-main-nav { column-gap: .9rem; }
}
@media (max-width: 48rem) {
  .shell-footer-contact { flex-direction: column; text-align: center; }
  .shell-contact-actions { justify-content: center; }
}
.site-shell-footer .shell-social-nav a:focus-visible { color: #F57C00; }
.shell-social-nav a:focus-visible .shell-social-icon { transform: translateY(-4px) scale(1.05); }
@media (hover: hover) {
  .site-shell-footer .shell-social-nav a:hover { color: #F57C00; }
  .shell-social-nav a:hover .shell-social-icon { transform: translateY(-4px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .site-shell-footer a, .site-shell-footer .shell-social-nav a, .shell-social-icon { transition: none; }
  .shell-social-nav a:is(:hover, :focus-visible) .shell-social-icon { transform: none; }
}

/* Las dos corrientes se componen detrás de la sección y nunca mueven su contenido. */
:where(.ambient-section, .site-shell-footer) {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
:where(.ambient-section, .site-shell-footer)::before,
:where(.ambient-section, .site-shell-footer)::after {
  content: "";
  position: absolute;
  inset: -18% -24%;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 12% 88%, transparent),
    linear-gradient(to bottom, transparent, #000 12% 88%, transparent);
  mask-composite: intersect;
}
:where(.ambient-section, .site-shell-footer)::before {
  background:
    radial-gradient(ellipse 62% 19% at 42% 41%, var(--ambient-ridge, #3a83ca9c), transparent 92%),
    radial-gradient(ellipse 52% 32% at 66% 74%, var(--ambient-lightwash, #1e569c8c), transparent 90%);
  animation: ambient-current-east 20s ease-in-out -4s infinite alternate paused;
}
:where(.ambient-section, .site-shell-footer)::after {
  background:
    radial-gradient(circle, var(--ambient-texture, #b8dbff24) .65px, transparent 1px) 0 0 / 25px 25px,
    radial-gradient(ellipse 46% 15% at 68% 64%, var(--ambient-secondary, #387fbd6e), transparent 96%),
    radial-gradient(ellipse 54% 27% at 28% 77%, var(--ambient-depth, #00132faa), transparent 84%);
  animation: ambient-current-west 16s ease-in-out -6s infinite alternate paused;
}
:where(.ambient-section, .site-shell-footer).ambient-running::before,
:where(.ambient-section, .site-shell-footer).ambient-running::after,
body:not(:has(.workflow-demo)) .site-shell-footer::before,
body:not(:has(.workflow-demo)) .site-shell-footer::after { animation-play-state: running; }
@keyframes ambient-current-east {
  from { transform: translate(-15%, -14%) rotate(-14deg); }
  to { transform: translate(15%, 14%) rotate(7deg); }
}
@keyframes ambient-current-west {
  from { transform: translate(15%, 12%) rotate(13deg); }
  to { transform: translate(-15%, -14%) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  :where(.ambient-section, .site-shell-footer)::before,
  :where(.ambient-section, .site-shell-footer)::after { animation: none; }
}
/* Shared privacy controls and direct contact. */
.privacy-dock {
  position: fixed;
  z-index: 20;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .85rem;
  pointer-events: none;
}

.privacy-notice, .privacy-dialog {
  box-sizing: border-box;
  color: #002B5B;
  background: #FFFFFF;
  border: 1px solid #aebfd1;
  border-radius: .8rem;
  box-shadow: 0 .75rem 2rem #00152b30;
}
.privacy-notice {
  flex: 0 1 30rem;
  max-block-size: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(.85rem, 3vw, 1.3rem);
  pointer-events: auto;
}
.privacy-dialog {
  inline-size: min(32rem, calc(100% - 2rem));
  max-block-size: calc(100dvh - 2rem);
  padding: clamp(1rem, 4vw, 1.5rem);
}
.privacy-dialog::backdrop { background: #00152b99; }
.privacy-notice h2, .privacy-dialog h2 {
  margin: 0;
  color: #002B5B;
  font-size: 1.2rem;
  line-height: 1.2;
}
.privacy-notice p, .privacy-dialog p {
  margin: .5rem 0 .8rem;
  color: #334b65;
  font-size: .935rem;
  line-height: 1.5;
}
.privacy-notice a { color: #002B5B; text-decoration: underline; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.privacy-actions button {
  min-height: 2.75rem;
  padding: .35rem .7rem;
  border: 1px solid #aebfd1;
  border-radius: .35rem;
  background: #FFFFFF;
  color: #002B5B;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.privacy-actions button:hover { background: #eef4fb; }
.privacy-actions button[type="submit"] { background: #002B5B; color: #FFFFFF; }
.privacy-actions button[type="submit"]:hover { background: #18486e; }
.privacy-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  margin: .85rem 0;
  padding: .65rem;
  border: 1px solid #d9e2ed;
  border-radius: .4rem;
  cursor: pointer;
}
.privacy-option input { flex: none; width: 1.2rem; height: 1.2rem; accent-color: #002B5B; }
.privacy-option span span { display: block; margin-top: .2rem; color: #334b65; font-size: .875rem; }
.site-shell-footer .shell-cookie-settings {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: #FFFFFF;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.shell-cookie-settings:hover { color: #F57C00; text-decoration: underline; }
.shell-cookie-settings:focus-visible, .floating-whatsapp:focus-visible {
  outline: 2px solid #F57C00;
  outline-offset: 3px;
}
.privacy-actions button:focus-visible, .privacy-option input:focus-visible, .privacy-notice a:focus-visible {
  outline: 2px solid #002B5B;
  outline-offset: 2px;
}
.floating-whatsapp {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-inline-start: auto;
  border: 1px solid #96b8d8;
  border-radius: 50%;
  background: #002B5B;
  box-shadow: 0 .25rem 1rem #00152b40;
  pointer-events: auto;
  transition: background-color .2s ease;
}
.floating-whatsapp img { display: block; width: 2.25rem; height: 2.25rem; object-fit: contain; }
@media (hover: hover) {
  .floating-whatsapp:hover { background: #174970; }
}
@media (max-width: 36rem) {
  .privacy-dock { gap: .5rem; }
  .privacy-actions button[data-cookie-settings] { flex-basis: 100%; }
  .floating-whatsapp { width: 3.125rem; height: 3.125rem; }
  .floating-whatsapp img { width: 2rem; height: 2rem; }
  .site-shell-footer { scroll-margin-bottom: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp { transition: none; }
}
