/* Plentius — rediseño (octubre 2026): menú, pie, portada y páginas nuevas.
   Tokens y base en style.css. Mismo diseño que el sitio estático de referencia
   (/root/Plentius/web en el servidor de Nicolás), pasado a las plantillas del tema. */

/* Secciones */
.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--surface-tint);
}

.section--alt {
  background: var(--surface-alt);
}

.section--dark {
  background: var(--dark-bg);
  color: #e6eef2;
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.section-head p {
  margin-top: 16px;
  text-wrap: balance;
  color: var(--text-muted);
  font-size: 18px;
}

.section--dark .section-head h2 {
  color: #e9f5f0;
}

.section--dark .section-head p {
  color: #c9d6dd;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-home .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow,
.contact__panel .eyebrow {
  color: var(--mint);
}

/* Botones fijos */
/* Fijos, para las bandas oscuras y la franja menta */
.btn--mint {
  background: var(--mint);
  color: var(--navy);
}

.btn--mint:hover {
  background: var(--mint-600);
}

.btn--navy {
  background: var(--navy);
  color: #ffffff;
}

.btn--navy:hover {
  background: var(--navy-900);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* Lista con tildes */
.checks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 34px;
}

.checks li::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313253c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Fichas (chips) */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips + .chips {
  margin-top: 10px;
}

.audience .chips + .chips {
  margin-top: -4px;
}

.chips li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

/* Anillo de foco en las bandas oscuras */
.hero-home,
.page-hero,
.section--dark,
.contact__panel,
.footer {
  --focus: var(--mint);
}

/* Íconos */
/* Ícono en un recuadro con tinte (tarjetas). Verde por defecto; tone-navy / tone-blue, en el recuadro
   o en un contenedor, cambian el color. */
.icon-box {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tone-bg, var(--tint-green));
  color: var(--tone, var(--pillar-green));
}

.tone-navy {
  --tone: var(--pillar-navy);
  --tone-bg: var(--tint-navy);
}

.tone-blue {
  --tone: var(--pillar-blue);
  --tone-bg: var(--tint-blue);
}

/* Heroes */
/* Heroes: banda oscura en los dos modos, con fondo animado (HeroBackdrop.astro) */
.hero-home,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark-base);
  color: #f7f8f7;
}

.page-hero {
  padding-block: clamp(72px, 10vw, 128px) clamp(56px, 8vw, 96px);
  text-align: center;
}

.page-hero h1 {
  max-width: 980px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.6vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #e9f5f0;
}

.page-hero p {
  max-width: 760px;
  margin: 22px auto 0;
  text-wrap: balance;
  color: #d5e0e6;
  font-size: clamp(16px, 2vw, 19px);
}

.page-hero .btn {
  margin-top: 36px;
}

/* Palabras destacadas de los títulos: menta con un brillo lento que las recorre */
.hl {
  font-style: normal;
  color: var(--mint);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hl {
    background: linear-gradient(100deg, var(--mint) 35%, #b4f7e4 50%, var(--mint) 65%) 100% 0 / 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 9s ease-in-out 1.2s infinite;
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  45%,
  100% {
    background-position: 0% 0;
  }
}

/* Entrada escalonada del contenido de los heroes */
.rise > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rise > :nth-child(2) {
  animation-delay: 0.08s;
}

.rise > :nth-child(3) {
  animation-delay: 0.16s;
}

.rise > :nth-child(4) {
  animation-delay: 0.24s;
}

.rise > :nth-child(5) {
  animation-delay: 0.36s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Fondo animado de los heroes (template-parts/hero-fondo.php; el puntero lo sigue theme.js) */
/* Propiedades registradas para poder animar la posición del foco */
@property --mx {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 72%;
}

@property --my {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 30%;
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.backdrop__glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
}

.backdrop__glow--mint {
  top: -42vmax;
  right: -22vmax;
  background: radial-gradient(circle, rgba(14, 216, 168, 0.26), transparent 62%);
  animation: drift-a 24s ease-in-out infinite alternate;
}

.backdrop__glow--blue {
  bottom: -46vmax;
  left: -26vmax;
  background: radial-gradient(circle, rgba(0, 130, 243, 0.26), transparent 62%);
  animation: drift-b 28s ease-in-out infinite alternate;
}

/* Misma grilla que el fondo (26px), en menta, visible solo dentro del foco */
.backdrop__dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(14, 216, 168, 0.85) 1.2px, transparent 1.7px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000, transparent 75%);
  mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000, transparent 75%);
  opacity: 0.6;
  animation: roam 30s ease-in-out infinite alternate;
}

.backdrop.is-tracking .backdrop__dots {
  animation: none;
  transition: --mx 0.25s ease-out, --my 0.25s ease-out;
}

@keyframes drift-a {
  to {
    transform: translate(-14vmax, 9vmax) scale(1.12);
  }
}

@keyframes drift-b {
  to {
    transform: translate(16vmax, -7vmax) scale(1.08);
  }
}

@keyframes roam {
  0% {
    --mx: 72%;
    --my: 30%;
  }
  35% {
    --mx: 34%;
    --my: 68%;
  }
  70% {
    --mx: 60%;
    --my: 82%;
  }
  100% {
    --mx: 22%;
    --my: 26%;
  }
}

@media (max-width: 767px) {
  .backdrop__dots {
    -webkit-mask-image: radial-gradient(circle 160px at var(--mx) var(--my), #000, transparent 75%);
    mask-image: radial-gradient(circle 160px at var(--mx) var(--my), #000, transparent 75%);
  }
}

/* Menú (header.php) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--nav-line);
}

/* El desenfoque va en un pseudo-elemento: en .nav, backdrop-filter haría de contenedor del menú de
   celular (position: fixed) y lo recortaría a la altura de la barra. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nav-bg);
  backdrop-filter: saturate(1.4) blur(10px);
}

.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.nav__logo {
  margin-right: auto;
}

.nav__logo img {
  width: 124px;
  height: auto;
}

/* Logo según el modo: navy sobre claro, blanco sobre oscuro */
.nav__logo .logo-dark,
html.dark .nav__logo .logo-light {
  display: none;
}

html.dark .nav__logo .logo-dark {
  display: block;
}

/* Escritorio: los ítems del menú centrados en la barra */
@media (min-width: 992px) {
  .nav__list {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

}

.nav__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Selector de idioma */
.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.lang__link {
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.lang__link:hover {
  color: var(--text);
}

.lang__link.is-current {
  background: var(--text);
  color: var(--bg);
}

/* Modo claro/oscuro: luna en claro (pasa a oscuro), sol en oscuro (pasa a claro) */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.theme-toggle .theme-toggle__sun,
html.dark .theme-toggle .theme-toggle__moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

html.dark .theme-toggle .theme-toggle__sun {
  opacity: 1;
  transform: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.has-sub .nav__link {
  padding-right: 4px;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--accent);
  background: var(--nav-hover);
}

.nav__caret {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.nav__subtoggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav__subtoggle:hover {
  color: var(--accent);
  background: var(--nav-hover);
}

.sub-open .nav__subtoggle .nav__caret {
  transform: translateY(2px) rotate(-135deg);
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

.nav__sub a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.nav__sub a:hover,
.nav__sub a[aria-current='page'] {
  background: var(--surface-tint);
  color: var(--accent);
}

.has-sub.sub-open .nav__sub,
.has-sub:hover:not(.is-dismissed) .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}

.nav__cta {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 15px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav__burger,
.nav__burger::before,
.nav__burger::after {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__burger {
  position: relative;
}

.nav__burger::before,
.nav__burger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav__burger::before {
  top: -7px;
}

.nav__burger::after {
  top: 7px;
}

.nav.is-open .nav__burger {
  background: transparent;
}

.nav.is-open .nav__burger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav__burger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Escritorio angosto: menos aire para que el menú centrado no choque con las herramientas */
@media (min-width: 992px) and (max-width: 1150px) {
  .nav__link {
    padding-inline: 10px;
  }

  .nav__list {
    left: calc(50% - 50px);
  }
}

@media (max-width: 991px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    inset: 72px 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 16px var(--gutter) 32px;
    overflow-y: auto;
    background: var(--surface-alt);
  }

  .nav.is-open .nav__menu {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
  }

  .nav__link,
  .has-sub .nav__link {
    flex: 1;
    padding: 14px 4px;
    font-size: 17px;
  }

  .nav__subtoggle {
    width: 44px;
    height: 44px;
    color: var(--accent);
  }

  .nav__sub {
    position: static;
    display: none;
    flex-basis: 100%;
    min-width: 0;
    margin-bottom: 8px;
    padding: 0 0 0 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .has-sub.sub-open .nav__sub {
    display: block;
  }

  .nav__cta {
    align-self: stretch;
    min-height: 48px;
  }
}

/* Modo de alto contraste: que la hamburguesa siga visible */
@media (forced-colors: active) {
  .nav__burger,
  .nav__burger::before,
  .nav__burger::after {
    background: ButtonText;
  }

  .nav.is-open .nav__burger {
    background: transparent;
  }
}

/* Con la barra de administración de WordPress, el menú queda debajo */
.admin-bar .nav {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .nav {
    top: 46px;
  }
}

body.no-scroll {
  overflow: hidden;
}

/* Pie (footer.php) */
/* Siempre oscuro (navy en modo claro, más profundo en modo oscuro) */
.footer {
  padding-block: clamp(56px, 7vw, 80px) 32px;
  background: var(--footer-bg);
  color: #c9d6dd;
  font-size: 15px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand p {
  max-width: 300px;
  margin-top: 18px;
}

.footer h2 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  color: var(--mint);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

@media (max-width: 991px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Franja de llamada a la acción (template-parts/cta.php) */
/* Franja menta, igual en los dos modos */
.cta-band__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--mint);
  color: var(--navy);
  --focus: var(--navy);
}

.cta-band h2 {
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
}

.cta-band p {
  max-width: 640px;
  margin-top: 14px;
  font-size: 17px;
}

.cta-band .btn {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cta-band__box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Pasos numerados (template-parts/pasos.php) */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}

/* Línea verde que se va llenando: 1/4 en el primer paso, 2/4 en el segundo... y completa
   en el último, así la secuencia se lee como un avance. */
.step::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: calc(100% * (var(--paso, 0) + 1) / var(--pasos, 4));
  height: 2px;
  background: var(--accent);
}

.step__num {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
}

.step h3 {
  color: var(--text);
  font-size: 20px;
}

.step p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 991px) {
  .steps {
    --cols: 2;
    row-gap: 40px;
  }
}

@media (max-width: 559px) {
  .steps {
    --cols: 1;
    row-gap: 32px;
  }
}

/* Equipo (template-parts/equipo.php) */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 24px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.member {
  text-align: center;
}

.member__photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
  border: 4px solid var(--card);
  border-radius: 50%;
  object-fit: cover;
  /* Las fotos con fondo azul son verticales (386x554) con la cara a media altura: el recorte
     cuadrado se centra ahi. Las cuadradas (fondo blanco) no se mueven. */
  object-position: 50% 38%;
  background: var(--surface-tint);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}

/* En la foto de Nicolás la cara está más abajo que en las otras: el recorte baja un poco más. */
.member__photo[data-persona="nicolas-medina"] {
  object-position: 50% 47%;
}

.member h3 {
  font-size: 18px;
}

.member p {
  margin-top: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .member__photo {
    width: 128px;
    height: 128px;
  }
}

/* Contacto (template-parts/contacto.php) */
/* Panel siempre oscuro; el formulario toma el fondo del tema */
.contact__panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--dark-bg);
  color: #d5e0e6;
}

.contact__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  color: #e9f5f0;
}

.contact__intro > p {
  margin-top: 18px;
  font-size: 17px;
}

.contact__points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact__points li {
  position: relative;
  padding-left: 26px;
  color: #ffffff;
  font-weight: 500;
}

.contact__points li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
}

.contact__mail {
  margin-top: 28px !important;
  font-size: 15px !important;
}

.contact__mail a {
  color: var(--mint);
  font-weight: 600;
}

.cform {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--form-bg);
  color: var(--text);
  --focus: var(--accent);
}

.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cform label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.cform small {
  color: var(--text-muted);
  font-weight: 400;
}

.cform input,
.cform select,
.cform textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}

.cform textarea {
  resize: vertical;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  border-color: var(--accent);
}

.cform .btn {
  justify-self: start;
  min-width: 200px;
}

.cform .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cform__trap {
  position: absolute;
  left: -9999px;
}

.cform__status {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.cform__status:empty {
  display: none;
}

@media (max-width: 991px) {
  .contact__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 559px) {
  .cform__row {
    grid-template-columns: 1fr;
  }

  .cform .btn {
    justify-self: stretch;
  }
}

/* Portada (front-page.php) */
/* Hero */
.hero-home {
  padding-block: clamp(88px, 12vw, 150px) clamp(56px, 7vw, 80px);
  text-align: center;
}

.hero-home__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-home__title {
  max-width: 1060px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 7.6vw, 86px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #e9f5f0;
}

.hero-home__lead {
  max-width: 700px;
  margin-top: 28px;
  color: #d5e0e6;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-home__actions .btn {
  min-width: 220px;
}

.metrics {
  display: grid;
  /* Tantas columnas como indicadores (front-page.php pasa --cols), de 250px cada una. */
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  width: 100%;
  max-width: calc(250px * var(--cols, 4));
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* dt va primero en el HTML (accesible); visualmente la cifra arriba, alineada en todas las columnas */
.metric {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding-inline: 12px;
}

.metric + .metric {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.metric dd {
  margin: 0;
  color: var(--mint);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}

.metric dt {
  color: #b7c6cf;
  font-size: 14px;
}

/* Tres áreas */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--tone, var(--pillar-green));
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.pillar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.pillar__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.pillar__num {
  color: var(--border);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.pillar > p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.pillar .checks {
  flex: 1;
  align-content: start;
  font-size: 15px;
}

.pillar .link-arrow {
  margin-top: 28px;
}

/* Legal */
.legal {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.legal__text h2,
.fin__text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 400;
}

.legal__text p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 17px;
}

.legal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal__grid li {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
}

.legal__grid .icon-box,
.model .icon-box {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

.legal__grid h3 {
  font-size: 17px;
}

.legal__grid p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Sector financiero */
.fin {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.fin__text h2 {
  color: #e9f5f0;
}

/* Tipos de entidad: etiquetas sobre la banda oscura, con el mismo tono menta de los íconos */
.fin__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.fin__badges li {
  padding: 6px 14px;
  border: 1px solid rgba(14, 216, 168, 0.35);
  border-radius: 999px;
  background: rgba(14, 216, 168, 0.12);
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
}

.fin__text p {
  margin-top: 18px;
  color: #d5e0e6;
  font-size: 17px;
}

.fin__text .btn {
  margin-top: 32px;
}

.fin__points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fin__points li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
}

.fin__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 216, 168, 0.14);
  color: var(--mint);
}

/* Modalidades */
.models__title {
  margin: clamp(64px, 8vw, 96px) 0 28px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  text-align: center;
}

.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.model h4 {
  font-size: 19px;
}

.model p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
}

.model .model__when {
  color: var(--accent);
  font-weight: 600;
}

.team__more {
  margin-top: 48px;
  text-align: center;
}

@media (max-width: 991px) {
  .pillars,
  .models {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .legal,
  .fin {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .metric:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 559px) {
  .hero-home__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .legal__grid {
    grid-template-columns: 1fr;
  }
}

/* Páginas de servicio (vistas/servicio.php) */
.intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.intro h2,
.deliver h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 40px);
  font-weight: 400;
}

.intro p {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.signals {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
}

.signals h3 {
  font-size: 20px;
}

.signals .checks {
  font-size: 15px;
}

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.offer__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
}

.offer h3 {
  font-size: 19px;
}

.offer p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.offers__note {
  max-width: 720px;
  margin: 36px auto 0;
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
}

.deliver {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.deliver h2 {
  color: #e9f5f0;
}

.deliver p {
  margin-top: 18px;
  color: #d5e0e6;
  font-size: 17px;
}

.deliver__list {
  gap: 14px;
  margin: 0;
}

.deliver__list li {
  padding: 18px 20px 18px 54px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 500;
}

.deliver__list li::before {
  top: 19px;
  left: 18px;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related__card .icon-box {
  width: 44px;
  height: 44px;
}

.related__card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 17px;
}

.related__card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

@media (max-width: 991px) {
  .intro,
  .deliver {
    grid-template-columns: 1fr;
  }

  .offers,
  .related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .offers,
  .related {
    grid-template-columns: 1fr;
  }
}

/* Sector financiero (vistas/finanzas.php) */
.audience {
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

/* Rótulo arriba y las etiquetas en dos filas parejas debajo (vistas/finanzas.php). */
.audience .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.audience__label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audience .chips li {
  padding: 6px 14px;
  font-size: 14px;
}

.challenges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ícono y título en la misma línea; el texto debajo, a todo el ancho. */
.challenges li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  align-items: center;
  column-gap: 14px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.challenges .icon-box {
  margin-bottom: 0;
}

.challenges h3 {
  font-size: 18px;
}

.challenges p {
  grid-column: 1 / -1;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
}

.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--tone, var(--pillar-green));
  border-radius: var(--radius-lg);
  background: var(--card);
}

.solution header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.solution h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.solution .checks {
  flex: 1;
  align-content: start;
  gap: 14px;
  font-size: 15px;
}

.solution .link-arrow {
  margin-top: 28px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
}

.principles__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.principles__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 216, 168, 0.14);
  color: var(--mint);
}

.principles__num {
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.principles h3 {
  color: #ffffff;
  font-size: 18px;
}

.principles p {
  margin-top: 8px;
  color: #c9d6dd;
  font-size: 15px;
}

/* Wealth management: texto a la izquierda, cuatro tarjetas a la derecha. */
.wealth {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.wealth__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.1;
}

.wealth__intro p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
}

.wealth__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wealth__list li {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.wealth__list h3 {
  margin-top: 16px;
  font-size: 17px;
}

.wealth__list p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

/* Caso de éxito (anónimo) */
.case {
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border);
  border-top: 4px solid var(--pillar-green);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.case__head {
  max-width: 760px;
}

.case__label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint-green);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case__head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
  line-height: 1.15;
}

.case__head p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 17px;
}

.case__head .case__client {
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.case__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.case__items .icon-box {
  width: 44px;
  height: 44px;
}

.case__items h3 {
  margin-top: 14px;
  font-size: 17px;
}

.case__items p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
}

.case__result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--tint-green);
  color: var(--text);
  font-weight: 600;
}

.case__result svg {
  flex-shrink: 0;
  color: var(--accent);
}

@media (max-width: 1099px) {
  .challenges,
  .principles,
  .case__items {
    grid-template-columns: repeat(2, 1fr);
  }

  .wealth {
    grid-template-columns: 1fr;
  }

  .solutions {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 599px) {
  .challenges,
  .principles,
  .wealth__list,
  .case__items {
    grid-template-columns: 1fr;
  }
}

/* Nosotros (vistas/nosotros.php) */
.how,
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* "Lo que nos distingue": tarjetas en dos columnas */
.how {
  grid-template-columns: repeat(2, 1fr);
  max-width: 960px;
  margin-inline: auto;
}

.how li {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.how h3,
.values h3 {
  font-size: 20px;
}

.how p,
.values p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.values li {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.values .icon-box {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  max-width: calc(260px * var(--cols, 4));
  gap: 24px;
  margin: 0 auto;
  text-align: center;
}

.about-stats div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
}

.about-stats dd {
  margin: 0;
  color: var(--mint);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
}

.about-stats dt {
  color: #c9d6dd;
  font-size: 15px;
}

@media (max-width: 991px) {
  .how,
  .values {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}

/* Herramienta gratuita (evaluaciones de IA y de ciberseguridad) en la página del área */
.tool {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 960px;
  margin: 40px auto 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--tone, var(--pillar-green));
  border-radius: var(--radius-lg);
  background: var(--card);
}

.tool .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.tool > div {
  flex: 1;
}

.tool .eyebrow {
  margin-bottom: 6px;
}

.tool h3 {
  font-size: 20px;
}

.tool p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
}

.tool .btn {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .tool {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

/* Integrante sin foto cargada en el panel */
.member__photo--vacia {
  display: block;
}

/* Redes en el pie (LinkedIn, Instagram), como en el sitio anterior. */
.footer .socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer .socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: border-color .2s, background .2s;
}

.footer .socials a:hover,
.footer .socials a:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .14);
}

.footer .socials img {
  width: auto;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: .9;
}
