/* ============================================================
   ONA PSICOLOGÍA Y DESARROLLO — style.css v2 (REDISEÑO ORGÁNICO)
   Inspirado en el logo: olas, gradiente coral-menta-azul, calidez
   Mobile-first · WCAG AA · Hostalia
   ============================================================ */

/* ── 1. GOOGLE FONTS ──────────────────────────────────────── */
/* Fuentes cargadas via <link> en cada HTML para mejor rendimiento */

/* ── 2. VARIABLES ─────────────────────────────────────────── */
:root {
  /* Paleta del logo */
  --blue:          #4A8FB5;   /* Azul de las olas */
  --blue-dark:     #2B6A90;   /* Azul oscuro (texto/AA) */
  --blue-deeper:   #1A4E6E;   /* Azul profundo */
  --coral:         #E8654A;   /* Coral del círculo */
  --coral-dark:    #C24432;   /* Coral oscuro */
  --peach:         #F5A070;   /* Melocotón/naranja cálido */
  --mint:          #7ECBB5;   /* Verde menta del logo */
  --mint-dark:     #4FA896;
  --mint-light:    #EAF7F4;
  --navy:          #1A2B3A;   /* Fondo oscuro (header/footer) */
  --navy-light:    #243544;

  /* Texto */
  --text:          #1E3040;   /* Texto principal */
  --text-muted:    #556070;
  --text-light:    #7A8A97;

  /* Fondos */
  --bg:            #FEFEFE;
  --bg-warm:       #FEF9F6;   /* Blanco cálido */
  --bg-mint:       #F0FAF7;   /* Tinte menta */
  --bg-blue:       #EDF5FA;   /* Tinte azul */
  --border:        #D5E8F0;

  /* Sombras */
  --shadow-sm:     0 2px 10px rgba(74,143,181,.10);
  --shadow-md:     0 6px 24px rgba(74,143,181,.14);
  --shadow-lg:     0 12px 40px rgba(74,143,181,.18);
  --shadow-warm:   0 6px 24px rgba(232,101,74,.15);

  /* Formas */
  --radius:        20px;
  --radius-sm:     12px;
  --radius-lg:     32px;
  --radius-xl:     48px;

  /* Misc */
  --ease:          0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:         1200px;
  --hdr:           100px;
}

/* ── 3. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--hdr);   /* compensa header fixed en todas las páginas */
}

img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Offset para anclas: compensa el header fijo al navegar con submenus */
section[id] {
  scroll-margin-top: calc(var(--hdr) + 1.5rem);
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── 4. TIPOGRAFÍA ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

.text-blue    { color: var(--blue-dark); }
.text-coral   { color: var(--coral-dark); }
.text-mint    { color: var(--mint-dark); }
.text-muted   { color: var(--text-muted); font-size: .92rem; }

/* ── 5. LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section { padding-block: 4.5rem; }
section.alt-warm { background: var(--bg-warm); }
section.alt-mint { background: var(--bg-mint); }
section.alt-blue { background: var(--bg-blue); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin-inline: auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: .6rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--peach));
  border-radius: 2px;
  flex-shrink: 0;
}

.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.5rem; }

/* ── 6. BOTONES ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.4;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

/* Botón coral (CTA principal) */
.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--peach) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(232,101,74,.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,101,74,.40);
  filter: brightness(1.05);
}

/* Botón azul outline */
.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Botón ghost en fondos oscuros */
.btn-ghost-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

/* Botón menta */
.btn-mint {
  background: linear-gradient(135deg, var(--mint) 0%, #52c0a8 100%);
  color: #fff;
  border-color: transparent;
}
.btn-mint:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126,203,181,.35);
}

.btn-ghost-text {
  background: transparent;
  color: var(--blue-dark);
  border: none;
  padding-inline: 0;
  font-weight: 700;
  gap: .3rem;
}
.btn-ghost-text:hover { color: var(--coral); gap: .5rem; }

.btn-sm { padding: .55rem 1.25rem; font-size: .83rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ── 7. HEADER ────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--hdr);
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Estado tras scroll */
.header.scrolled {
  background: #F5F0EA;
  /* backdrop-filter eliminado: rompe position:fixed del menú móvil */
  box-shadow: 0 2px 20px rgba(0,0,0,0.09);
}

/* Iconos de contacto rápido en header */
.header-contact {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  padding-left: 1.1rem;
  position: relative;
  order: 3;
}
.header-contact::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 22px;
  background: rgba(255,255,255,.3);
}
.header.scrolled .header-contact::before,
.header--solid .header-contact::before { background: rgba(26,43,58,.15); }

.header-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.header-contact-link:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.7);
  color: #fff;
  transform: translateY(-1px);
}
/* WhatsApp destacado */
.header-contact-link--wa {
  background: rgba(37,211,102,.18);
  border-color: rgba(37,211,102,.6);
  color: #4ade80;
}
.header-contact-link--wa:hover {
  background: rgba(37,211,102,.3);
  border-color: #4ade80;
  transform: translateY(-1px);
}
/* Scrolled / solid → iconos oscuros */
.header.scrolled .header-contact-link,
.header--solid .header-contact-link {
  border-color: rgba(26,43,58,.2);
  color: var(--navy);
}
.header.scrolled .header-contact-link:hover,
.header--solid .header-contact-link:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: rgba(74,143,181,.08);
  transform: translateY(-1px);
}
.header.scrolled .header-contact-link--wa,
.header--solid .header-contact-link--wa {
  background: rgba(37,211,102,.1);
  border-color: rgba(37,211,102,.5);
  color: #16a34a;
}
.header.scrolled .header-contact-link--wa:hover,
.header--solid .header-contact-link--wa:hover {
  background: rgba(37,211,102,.2);
  border-color: #16a34a;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .header-contact { order: 2; padding-left: .75rem; gap: .25rem; }
  .header-contact-link { width: 30px; height: 30px; border-radius: 6px; }
  .nav-toggle { order: 3; margin-left: .25rem; }

  /* ── Menú móvil: texto oscuro sobre fondo blanco ──────── */
  .nav-link {
    color: var(--navy) !important;
  }
  .nav-link:hover {
    color: var(--blue-dark) !important;
    background: rgba(74,143,181,.08) !important;
  }
  .nav-link.active {
    color: var(--blue-dark) !important;
    background: rgba(74,143,181,.08) !important;
  }
  .nav-dropdown-link {
    color: var(--text-muted) !important;
  }
  .nav-dropdown-link:hover {
    color: var(--navy) !important;
    background: rgba(74,143,181,.08) !important;
  }
  /* Separador visual entre ítems del menú */
  .nav-list > .nav-item {
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav-list > .nav-item:last-child {
    border-bottom: none;
  }
}

/* Header siempre blanco — páginas interiores (servicios, charlas, equipo, faq) */
.header--solid,
.header--solid.scrolled {
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.09) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.header--solid .nav-link { color: var(--navy) !important; }
.header--solid .nav-link:hover { color: var(--blue-dark) !important; background: rgba(74,143,181,.07) !important; }
.header--solid .nav-toggle span { background: var(--navy) !important; }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Swap de logo gestionado por JS — sin content:url() para evitar artefactos */

/* Fallback texto si no hay imagen */
.logo-text-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-mark {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
.logo-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9CA3B0;
  margin-top: .05rem;
}

/* Wordmark junto al logo */
.logo-wordmark {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-left: .4rem;
}
.logo-sep {
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(0,0,0,.14);
  flex-shrink: 0;
}
.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #3D4460;
  line-height: 1.5;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;           /* blanco sobre hero/page-hero */
  border-radius: 2px;
  transition: all var(--ease), background 0.3s ease;
}
/* Scrolled: hamburger oscuro (fondo blanco) */
.header.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav */
.nav {
  display: none;
  position: fixed;
  inset: var(--hdr) 0 0 0;
  background: #ffffff;
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  z-index: 899;
}
.nav.is-open { display: block; }
.nav-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-link {
  display: block;
  padding: .75rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: rgba(255,255,255,.82);   /* blanco suave — válido sobre hero y page-hero */
  border-radius: var(--radius-sm);
  transition: color 0.3s ease, opacity 0.3s ease;
  position: relative;
}
.nav-link:hover {
  color: #fff;
  background: transparent;
}
.nav-link.active { color: #fff; background: transparent; }

/* Underline animado izq → der (solo desktop, se activa en breakpoint) */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: .7rem;
  width: 0; height: 2px;
  background: #D8B38A;
  border-radius: 1px;
  transition: width 0.3s ease;
  pointer-events: none;
}

/* nav-cta — mismo estilo que el resto de links */
.nav-cta { /* heredado de .nav-link */ }

/* ── DROPDOWN SUBMENU ──────────────────────────────────────── */
.nav-item { position: relative; list-style: none; }

/* Flecha indicadora */
.nav-link--parent { display: flex; align-items: center; gap: .3rem; }
.nav-arrow {
  font-size: .65rem; line-height: 1;
  display: inline-block;
  transition: transform .25s ease;
}

/* MÓVIL: lista oculta por defecto, se muestra con .is-open */
.nav-dropdown {
  display: none;
  flex-direction: column;
  padding: .2rem 0 .2rem 1rem;
  margin: 0; list-style: none; gap: 0;
}
.nav-item--has-dropdown.is-open > .nav-dropdown { display: flex; }
.nav-item--has-dropdown.is-open > .nav-link--parent .nav-arrow { transform: rotate(180deg); }

.nav-dropdown-link {
  display: block;
  padding: .45rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.72);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-dropdown-link:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ── 8. WAVE DIVIDERS (SVG inline en HTML) ────────────────── */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px;
}
.wave-divider svg { display: block; width: 100%; }

/* ── 9. HERO ──────────────────────────────────────────────── */
.hero {
  background: #0f2030; /* fallback si la imagen no carga */
  margin-top: calc(var(--hdr) * -1);        /* sube bajo el header transparente */
  padding-top: calc(5rem + var(--hdr));     /* compensa el pull-up */
  padding-bottom: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Imagen de fondo desenfocada */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../assets/Gemini_Generated_Image_s2sudbs2sudbs2su.webp');
  background-size: cover;
  background-position: center 30%;
  filter: blur(1px);
  transform: scale(1.02); /* evita bordes blancos del blur */
  z-index: 0;
}

/* Overlay oscuro para legibilidad del texto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 46, 0.64);
  z-index: 1;
}

/* Decoración de círculos orgánicos */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(126,203,181,.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,101,74,.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.hero-content { position: relative; z-index: 3; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--peach) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  margin-bottom: 2.25rem;
  max-width: 560px;
}
.hero-sub strong { color: var(--mint); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Ola decorativa hero */
.hero-wave {
  position: relative;
  z-index: 4;
  margin-top: 0;
  line-height: 0;  /* elimina espacio fantasma bajo el SVG */
}

/* ── 10. CARDS ────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(213,232,240,.6);
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Línea decorativa en tope de la card */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--peach));
  opacity: 0;
  transition: opacity var(--ease);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.card-icon-blue  { background: linear-gradient(135deg, var(--bg-blue), #d0e8f5); }
.card-icon-coral { background: linear-gradient(135deg, #fef0ec, #fde3da); }
.card-icon-mint  { background: linear-gradient(135deg, var(--mint-light), #d0f0e8); }

/* Foto en cards de servicio */
.card-photo {
  margin: -1.75rem -1.75rem 1.25rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, var(--blue), var(--coral)); /* fallback */
  aspect-ratio: 16 / 9;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.card:hover .card-photo img { transform: scale(1.04); }

/* Foto de sección ancha (charlas, equipo) */
.section-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--blue), var(--mint)); /* fallback */
  aspect-ratio: 21 / 6;
}
.section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Foto equipo con caption */
.team-photo-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  position: relative;
}
.team-photo-wrap .section-img { aspect-ratio: 21 / 7; height: auto; }
.photo-caption {
  position: absolute;
  bottom: .75rem;
  right: 1rem;
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.35);
  padding: .2rem .6rem;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

.card h3 {
  margin-bottom: .5rem;
  font-size: 1.1rem;
  color: var(--text);
}
.card p { color: var(--text-muted); font-size: .93rem; line-height: 1.65; }

/* Card de servicio — borde lateral coloreado */
.service-card {
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.service-card::before { display: none; }
.service-card:hover { border-left-color: var(--coral); }

/* ── 11. PILARES / VALORES ────────────────────────────────── */
.pillars-grid { display: grid; gap: 1.1rem; }

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(213,232,240,.7);
  transition: all var(--ease);
}
.pillar:hover {
  border-color: var(--mint);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint-light), #d0f0e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pillar-body h4 { margin-bottom: .2rem; color: var(--blue-dark); font-size: .98rem; }
.pillar-body p  { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* ── 12. TAGS ─────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .3rem .85rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-blue);
  color: var(--blue-dark);
  border: 1px solid rgba(74,143,181,.2);
}
.tag-coral { background: #fef0ec; color: var(--coral-dark); border-color: rgba(232,101,74,.2); }
.tag-mint  { background: var(--mint-light); color: var(--mint-dark); border-color: rgba(126,203,181,.3); }

/* ── 13. SERVICIOS DETALLE ────────────────────────────────── */
.service-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mint) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(74,143,181,.3);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* Layout 2 columnas: contenido + aside CTA */
.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .service-detail-layout {
    grid-template-columns: 1fr 320px;
  }
}

.service-works h4,
.service-ages h4 {
  font-size: .72rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
}

.service-works ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.service-works li {
  background: var(--bg-warm);
  border: 1px solid rgba(213,232,240,.8);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .84rem;
  color: var(--text-muted);
}

.ages-grid { display: grid; gap: .5rem; }

.age-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .65rem 1rem;
  background: var(--mint-light);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
}
.age-item::before {
  content: '✓';
  color: var(--mint-dark);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: .1rem;
}

.enfoque-box {
  background: linear-gradient(135deg, var(--bg-blue), var(--bg-mint));
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: .93rem;
}
.enfoque-box strong { color: var(--blue-dark); }

/* ── 14. FAQ ACORDEÓN ─────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--ease);
  background: var(--bg);
}
.faq-item:hover { border-color: var(--blue); }
.faq-item:focus-within { box-shadow: 0 0 0 3px rgba(74,143,181,.2); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: all var(--ease);
  border: none;
  cursor: pointer;
}
.faq-question:hover { color: var(--blue-dark); background: var(--bg-blue); }
.faq-question[aria-expanded="true"] { color: var(--blue-dark); background: var(--bg-blue); }

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--peach));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  transition: transform var(--ease);
  box-shadow: 0 2px 8px rgba(232,101,74,.25);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-answer.is-open { max-height: 640px; }

.faq-answer-inner {
  padding: 1rem 1.4rem 1.4rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: .94rem;
  border-top: 1px solid var(--border);
}
.faq-answer-inner a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(43,106,144,.3);
  text-underline-offset: 2px;
  transition: color .2s, text-decoration-color .2s;
}
.faq-answer-inner a:hover {
  color: var(--coral);
  text-decoration-color: rgba(232,101,74,.4);
}

.faq-step {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .65rem;
}
.faq-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  margin-top: .15rem;
}

/* ── 15. FORMULARIO CONTACTO ──────────────────────────────── */
.contact-grid { display: grid; gap: 2.5rem; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: all var(--ease);
}
.contact-item:hover { border-color: var(--mint); box-shadow: var(--shadow-sm); }

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-mint), var(--mint-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-item-body h4 { font-size: .8rem; color: var(--text-light); font-weight: 700; margin-bottom: .2rem; }
.contact-item-body a  { color: var(--blue-dark); font-weight: 700; font-size: .98rem; }
.contact-item-body a:hover { text-decoration: underline; color: var(--coral); }
.contact-item-body p  { color: var(--text); font-size: .9rem; margin: 0; }

.form-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .83rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group .required { color: var(--coral); margin-left: .2rem; }

.form-control {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-warm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(74,143,181,.12);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-hint { font-size: .78rem; color: var(--text-light); margin-top: .3rem; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.form-consent input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: .15rem;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.form-success { display: none; text-align: center; padding: 2.5rem 1.5rem; }

/* ── 16. ACTIVIDADES / CHARLAS ────────────────────────────── */
.activity-card { border-top: 4px solid var(--blue); }
.activity-card.coral-top  { border-top-color: var(--coral); }
.activity-card.mint-top   { border-top-color: var(--mint); }

.activity-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }

/* ── 17. EQUIPO ───────────────────────────────────────────── */
.team-card { text-align: center; padding: 2rem 1.5rem; }

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-blue), var(--mint-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2.5rem;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.team-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--peach), var(--mint));
  z-index: -1;
}

.team-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.team-role { color: var(--blue-dark); font-weight: 700; font-size: .88rem; margin-bottom: .5rem; }
.team-card p { font-size: .88rem; color: var(--text-muted); }

/* ── 18. SECCIÓN CTA ─────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;   /* wave-top div arranca en el borde mismo */
}
.cta-section .container { padding-top: 2.5rem; padding-bottom: 3rem; }
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(126,203,181,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(232,101,74,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section h2 { color: #fff; position: relative; z-index: 1; }
.cta-section p   { color: rgba(255,255,255,.78); position: relative; z-index: 1; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
}

/* ── 19. PAGE HERO (páginas interiores) ──────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1f3d54 100%);
  padding-block: 3rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(126,203,181,.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  margin-bottom: .6rem;
}
.page-hero .lead {
  color: rgba(255,255,255,.78);
  font-size: 1.06rem;
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── 20. BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: rgba(255,255,255,.9); }

/* ── 21. SKIP LINK (accesibilidad) ───────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── 22. NOTICE / AVISOS ──────────────────────────────────── */
.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .93rem;
  line-height: 1.65;
  border: 1.5px solid transparent;
}
.notice-info {
  background: #fef9ec;
  border-color: rgba(200,150,62,.3);
  color: var(--text);
}
.notice-info strong { color: #8a6020; }

/* ── 23. SERVICE ASIDE IMAGE ──────────────────────────────── */
.service-aside-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ── 24. STEP NUMBERS ─────────────────────────────────────── */
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .88rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(74,143,181,.3);
}

/* ── 25. JOB CARDS (Trabaja con nosotros) ────────────────── */
.job-detail-grid { display: grid; gap: 1.5rem; }

.job-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--ease);
  background: var(--bg);
}
.job-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.job-card--spontaneous { border-style: dashed; }

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.job-card-header:hover { background: var(--bg-blue); }

.job-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .4rem;
}
.job-tag {
  font-size: .72rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  padding: .2rem .65rem;
  border-radius: 50px;
  background: var(--bg-blue);
  color: var(--blue-dark);
  border: 1px solid rgba(74,143,181,.2);
}
.job-tag--muted {
  background: var(--bg-warm);
  color: var(--text-muted);
  border-color: var(--border);
}

/* job-toggle styles moved to section below */

.job-detail:not([hidden]) {
  animation: jobSlideDown .3s ease;
}
@keyframes jobSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.job-detail > div {
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--border);
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.job-detail ul { list-style: disc; padding-left: 1.25rem; margin-top: .4rem; }
.job-detail li { margin-bottom: .25rem; }

.job-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  padding: .55rem 1.25rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--coral), var(--peach));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--ease);
  border: none;
  cursor: pointer;
}
.job-apply-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* ── 26. FOOTER ───────────────────────────────────────────── */
.footer {
  background: #fff;
  color: var(--text-muted);
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-img { opacity: 1; }
.footer-brand p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: .75rem;
  max-width: 260px;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-col a {
  font-size: .88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--blue-dark); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.75rem;
  font-size: .8rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .22s ease;
}
.footer-social-link:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: rgba(74,143,181,.1);
  transform: translateY(-2px);
}

/* ── 27. DESKTOP NAVIGATION ──────────────────────────────── */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav {
    display: flex !important;
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    z-index: auto;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: .15rem;
  }

  .nav-link {
    padding: .5rem .75rem;
    font-size: .86rem;
    color: rgba(255,255,255,.82);
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }
  .nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
  .nav-link.active { color: #fff; }

  .nav-link::after { display: block; }
  .nav-link:hover::after { width: calc(100% - 1.4rem); }

  /* Scrolled / solid: links oscuros */
  .header.scrolled .nav-link,
  .header--solid .nav-link {
    color: var(--navy);
  }
  .header.scrolled .nav-link:hover,
  .header--solid .nav-link:hover {
    background: rgba(74,143,181,.08);
    color: var(--blue-dark);
  }
  .header.scrolled .nav-link.active,
  .header--solid .nav-link.active { color: var(--blue-dark); }

  /* Dropdown desktop */
  .nav-dropdown {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(100% - 4px); /* solapa ligeramente el padre para evitar gap */
    left: 0;
    margin-top: 4px;
    min-width: 190px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    border: 1px solid rgba(213,232,240,.8);
    padding: .6rem 0 .45rem;
    opacity: 0;
    transform: translateY(6px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    z-index: 901;
  }

  .nav-item--has-dropdown:hover > .nav-dropdown,
  .nav-item--has-dropdown.is-open > .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
  }

  .nav-dropdown-link {
    color: var(--text);
    font-size: .84rem;
    padding: .45rem 1.1rem;
    border-radius: 0;
  }
  .nav-dropdown-link:hover { color: var(--blue-dark); background: var(--bg-blue); }

  .nav-item--has-dropdown.is-open > .nav-link--parent .nav-arrow { transform: none; }

  /* Footer grid desktop */
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }

  /* Job grid */
  .job-detail-grid { grid-template-columns: repeat(2, 1fr); }

  /* Grids generales */
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr 1.4fr; }

  /* Pillars grid */
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── UTILITIES ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ── WAVE TOP (CTA section) ──────────────────────────────── */
.wave-top { line-height: 0; margin-bottom: -1px; }
.wave-top svg { display: block; width: 100%; }

/* ── JOBS LIST ────────────────────────────────────────────── */
.jobs-pillars { margin-bottom: 3.5rem; }
.jobs-list { display: flex; flex-direction: column; gap: 1rem; }

.job-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  background: transparent;
  cursor: pointer;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--blue);
  color: var(--blue-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  transition: all var(--ease);
  white-space: nowrap;
}
.job-toggle:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.job-toggle[aria-expanded="true"] {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
}
.job-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.job-toggle svg { transition: transform .25s ease; flex-shrink: 0; }
.job-toggle-label { white-space: nowrap; }

.job-detail[hidden] { display: none; }
.job-detail:not([hidden]) { display: block; }

/* ── CANDIDATURA FORM ─────────────────────────────────────── */
.candidatura-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .candidatura-layout { grid-template-columns: 1fr 1.6fr; }
}

.candidatura-aside h2 { margin-bottom: .65rem; }
.candidatura-aside p { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.5rem; }

.candidatura-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.candidatura-steps li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text-muted);
}

.candidatura-form {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-control { border-radius: var(--radius-sm); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23556070' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: var(--bg-warm);
  transition: border-color var(--ease), background var(--ease);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: var(--bg-blue);
}
.upload-zone svg { margin: 0 auto .65rem; color: var(--blue); }
.upload-zone p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.upload-hint { font-size: .75rem; color: var(--text-light); }
.upload-zone.has-file { border-color: var(--mint-dark); background: var(--bg-mint); }
.upload-zone.has-file p { color: var(--mint-dark); font-weight: 700; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: .15rem;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.form-check a { color: var(--blue-dark); font-weight: 700; }

/* ── Banner de cookies ────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 -4px 24px rgba(26,43,58,.14);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.22,.68,0,1.2), opacity .3s ease;
  will-change: transform, opacity;
}
#cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
#cookie-banner.is-hiding {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  min-width: 200px;
}
.cookie-banner-link {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.cookie-banner-btn {
  display: inline-block;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
  border: none;
  font-family: inherit;
}
.cookie-banner-btn--primary {
  background: var(--blue);
  color: #fff;
}
.cookie-banner-btn--primary:hover {
  background: var(--blue-dark);
}
.cookie-banner-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.cookie-banner-btn--ghost:hover {
  background: var(--bg-blue);
  color: var(--blue-dark);
}
@media (max-width: 540px) {
  .cookie-banner-inner {
    padding: 1rem;
    gap: .75rem;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
