/* =====================================================================
   PSICOEDUC — Hoja de estilos principal
   Paleta: naranja ejecutivo + blanco institucional + tinta profunda
   Tipografía: Sora (display) / Inter (texto) / JetBrains Mono (datos)
   ===================================================================== */

:root{
  /* ---- Color ---- */
  --ink:            #15171C;
  --ink-2:          #21252C;
  --ink-soft:       #3A3F49;
  --orange:         #E8590C;
  --orange-dark:    #B8430A;
  --orange-deep:    #7A2E08;
  --orange-light:   #FF8A42;
  --orange-pale:    #FFEEE1;
  --orange-pale-2:  #FFF6EF;
  --white:          #FFFFFF;
  --off-white:      #FFFCFA;
  --gray-900:       #1F2126;
  --gray-700:       #454952;
  --gray-600:       #5B5F66;
  --gray-400:       #9AA0A8;
  --gray-300:       #D8DADD;
  --gray-150:       #EDEBE8;
  --gray-100:       #F5F3F1;
  --success:        #1E8A4C;
  --error:          #C81E3A;

  /* ---- Type ---- */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- Layout ---- */
  --container-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(21,23,28,.06);
  --shadow-md: 0 12px 32px rgba(21,23,28,.10);
  --shadow-lg: 0 24px 60px rgba(21,23,28,.16);
  --header-h: 84px;
}

/* ======================= RESET ======================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--gray-900);
  background:var(--off-white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font:inherit; cursor:pointer; }
input,textarea,select{ font:inherit; }
h1,h2,h3,h4,p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{ outline:3px solid var(--orange-light); outline-offset:2px; }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--orange); color:var(--white);
  padding:10px 18px; z-index:9999; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.container{ width:100%; max-width:var(--container-w); margin:0 auto; padding:0 24px; }

/* ======================= TIPOGRAFÍA ======================= */
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; color:var(--ink); line-height:1.15; letter-spacing:-0.01em; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono);
  font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--orange-dark);
  background:var(--orange-pale); border:1px solid rgba(232,89,12,.25); padding:6px 14px; border-radius:999px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--orange); }
.section-kicker{ color:var(--orange-dark); font-family:var(--font-mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; }
.section-title{ font-size:clamp(28px,4vw,42px); margin-top:10px; }
.section-lead{ color:var(--gray-600); font-size:17px; line-height:1.65; max-width:640px; margin-top:14px; }
.text-center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ======================= BOTONES ======================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:15px;
  border:1.5px solid transparent; transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color:var(--white); box-shadow:0 10px 24px rgba(232,89,12,.30);
}
.btn-primary:hover{ box-shadow:0 14px 30px rgba(232,89,12,.42); transform:translateY(-1px); }
.btn-outline{
  background:transparent; border-color:var(--gray-300); color:var(--ink);
}
.btn-outline:hover{ border-color:var(--orange); color:var(--orange-dark); }
.btn-ghost-light{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.35); color:var(--white); }
.btn-ghost-light:hover{ background:rgba(255,255,255,.16); }
.btn-link{
  display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--orange-dark); padding:0;
}
.btn-link svg{ transition:transform .18s ease; }
.btn-link:hover svg{ transform:translateX(4px); }
.btn-sm{ padding:9px 18px; font-size:13.5px; }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

/* ======================= ENCABEZADO ======================= */
.site-header{
  position:sticky; top:0; z-index:500; background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--gray-150);
  height:var(--header-h);
}
.header-inner{ display:flex; align-items:center; height:100%; gap:28px; }
.brand{ display:flex; align-items:center; gap:12px; margin-right:auto; }
.brand-seal{ width:52px; height:52px; object-fit:contain; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-name{ font-family:var(--font-display); font-weight:800; font-size:19px; color:var(--ink); letter-spacing:.02em; }
.brand-sub{ font-size:11px; color:var(--gray-600); font-weight:500; }

.desktop-nav ul{ display:flex; align-items:center; gap:6px; }
.desktop-nav a, .dropdown-toggle{
  display:flex; align-items:center; gap:6px; padding:10px 16px; border-radius:999px;
  font-weight:600; font-size:14.5px; color:var(--gray-700); background:transparent; border:none;
  transition:background .18s ease, color .18s ease;
}
.desktop-nav a:hover, .dropdown-toggle:hover{ background:var(--orange-pale-2); color:var(--orange-dark); }
.desktop-nav a.active, .dropdown-toggle.active{ background:var(--orange-pale); color:var(--orange-dark); }
.has-dropdown{ position:relative; }
.dropdown-menu{
  position:absolute; top:calc(100% + 10px); left:0; min-width:230px; background:var(--white);
  border-radius:var(--radius-md); box-shadow:var(--shadow-lg); border:1px solid var(--gray-150);
  padding:8px; opacity:0; visibility:hidden; transform:translateY(6px); transition:all .18s ease;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-menu li a{ display:block; padding:11px 14px; border-radius:8px; font-weight:600; color:var(--gray-700); font-size:14px; }
.dropdown-menu li a:hover{ background:var(--orange-pale-2); color:var(--orange-dark); }

.btn-header-cta{ padding:11px 22px; font-size:14px; }
.mobile-nav-toggle{
  display:none; background:var(--ink); color:var(--white); border:none; border-radius:12px;
  width:46px; height:46px; align-items:center; justify-content:center;
}

/* ======================= MENÚ MÓVIL (pantalla completa, tal como referencia) ======================= */
.mobile-nav{
  position:fixed; inset:0; background:linear-gradient(180deg, var(--ink) 0%, #0D0F13 100%);
  z-index:900; transform:translateY(-100%); transition:transform .35s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column; overflow-y:auto;
}
.mobile-nav.is-open{ transform:translateY(0); }
.mobile-nav-top{ display:flex; justify-content:flex-end; align-items:center; height:76px; flex-shrink:0; }
.mobile-nav-close{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.25); color:var(--white);
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
}
.mobile-nav nav{ flex:1; display:flex; flex-direction:column; justify-content:center; padding:20px 32px 48px; }
.mobile-nav-list{ display:flex; flex-direction:column; }
.mobile-nav-list > li{ border-bottom:1px solid rgba(255,255,255,.10); }
.mobile-nav-list > li > a{
  display:block; padding:20px 4px; text-align:center; color:var(--white); font-family:var(--font-display);
  font-size:22px; font-weight:600;
}
.mobile-accordion-toggle{
  width:100%; background:none; border:none; color:var(--white); font-family:var(--font-display);
  font-size:22px; font-weight:600; padding:20px 4px; display:flex; align-items:center; justify-content:center; gap:10px;
}
.mobile-accordion-toggle svg{ transition:transform .25s ease; color:var(--orange-light); }
.mobile-accordion.open .mobile-accordion-toggle svg{ transform:rotate(180deg); }
.mobile-accordion-panel{
  max-height:0; overflow:hidden; transition:max-height .3s ease; background:rgba(255,255,255,.04);
  border-radius:12px;
}
.mobile-accordion.open .mobile-accordion-panel{ max-height:220px; padding-bottom:8px; }
.mobile-accordion-panel li a{
  display:block; text-align:center; padding:13px 4px; color:var(--gray-300); font-size:16px; font-weight:500;
}
.mobile-accordion-panel li a:hover{ color:var(--orange-light); }
.mobile-nav-cta{ margin:28px auto 0; width:min(320px,100%); }
.mobile-nav-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:890; opacity:0; visibility:hidden;
  transition:opacity .3s ease;
}
.mobile-nav-backdrop.is-open{ opacity:1; visibility:visible; }

/* ======================= HERO ======================= */
.hero{
  position:relative; background:linear-gradient(160deg, var(--ink) 0%, #201409 65%, var(--orange-deep) 130%);
  overflow:hidden; padding:88px 0 100px;
}
.hero::before{
  content:''; position:absolute; width:640px; height:640px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,138,66,.28) 0%, rgba(255,138,66,0) 70%);
  top:-220px; right:-160px; pointer-events:none;
}
.hero-grid{ position:relative; z-index:2; display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero-copy .eyebrow{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.22); color:var(--orange-light); }
.hero-copy .eyebrow::before{ background:var(--orange-light); }
.hero-title{ color:var(--white); font-size:clamp(34px,4.6vw,54px); margin-top:18px; }
.hero-title em{ font-style:normal; color:var(--orange-light); }
.hero-text{ color:rgba(255,255,255,.72); font-size:17.5px; line-height:1.7; margin-top:20px; max-width:520px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
.hero-stats{ display:flex; gap:34px; margin-top:44px; flex-wrap:wrap; }
.hero-stat b{ display:block; font-family:var(--font-display); font-size:26px; color:var(--white); }
.hero-stat span{ color:rgba(255,255,255,.6); font-size:13px; }

.hero-media{ position:relative; }
.hero-media-frame{
  position:relative; border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:4/3.1;
  background:linear-gradient(150deg, #2A1B0E, #100B06); border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow-lg); display:flex; align-items:center; justify-content:center;
}
.hero-media-frame img{ width:100%; height:100%; object-fit:cover; opacity:.92; }
.hero-play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:74px; height:74px; border-radius:50%; background:var(--orange);
  display:flex; align-items:center; justify-content:center; color:var(--white); box-shadow:0 16px 34px rgba(0,0,0,.35);
  border:none; transition:transform .2s ease;
}
.hero-play:hover{ transform:translate(-50%,-50%) scale(1.08); }
.hero-media-badge{
  position:absolute; bottom:-20px; left:-20px; background:var(--white); border-radius:var(--radius-md);
  padding:16px 20px; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:12px; max-width:250px;
}
.hero-media-badge .badge-icon{
  width:42px; height:42px; border-radius:50%; background:var(--orange-pale); color:var(--orange-dark);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.hero-media-badge p{ font-size:13px; color:var(--gray-700); font-weight:600; line-height:1.35; }

/* ======================= FRANJA LOGOS / SELLO ======================= */
.trust-strip{ background:var(--white); border-bottom:1px solid var(--gray-150); padding:26px 0; }
.trust-strip .container{ display:flex; align-items:center; justify-content:center; gap:40px; flex-wrap:wrap; }
.trust-item{ display:flex; align-items:center; gap:10px; color:var(--gray-600); font-size:13.5px; font-weight:600; }
.trust-item svg{ color:var(--orange); flex-shrink:0; }

/* ======================= SECCIONES GENERALES ======================= */
.section{ padding:88px 0; }
.section-alt{ background:var(--gray-100); }
.section-head{ max-width:680px; margin-bottom:48px; }
.section-head.centered{ margin-left:auto; margin-right:auto; text-align:center; }

/* Tarjetas de servicio */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.service-card{
  background:var(--white); border:1px solid var(--gray-150); border-radius:var(--radius-lg);
  padding:32px 28px; transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent; }
.service-icon{
  width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--orange-pale), var(--orange-pale-2)); color:var(--orange-dark); margin-bottom:20px;
}
.service-card h3{ font-size:19px; margin-bottom:10px; }
.service-card p{ color:var(--gray-600); font-size:14.5px; line-height:1.65; }
.service-card .btn-link{ margin-top:18px; font-size:13.5px; }

/* Franja CTA */
.cta-band{
  background:linear-gradient(120deg, var(--orange-dark), var(--orange)); border-radius:var(--radius-lg);
  padding:52px 48px; display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
  color:var(--white); position:relative; overflow:hidden;
}
.cta-band::after{
  content:''; position:absolute; width:320px; height:320px; border-radius:50%; background:rgba(255,255,255,.08);
  right:-100px; top:-140px;
}
.cta-band h3{ color:var(--white); font-size:26px; max-width:460px; position:relative; z-index:1; }
.cta-band p{ color:rgba(255,255,255,.85); margin-top:8px; position:relative; z-index:1; }
.cta-band .btn{ position:relative; z-index:1; }
.cta-band .btn-primary{ background:var(--white); color:var(--orange-dark); box-shadow:none; }
.cta-band .btn-primary:hover{ background:var(--ink); color:var(--white); }

/* Estadísticas */
.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.stat-box{ text-align:center; padding:30px 18px; background:var(--white); border-radius:var(--radius-md); border:1px solid var(--gray-150); }
.stat-box b{ font-family:var(--font-display); font-size:34px; color:var(--orange-dark); display:block; }
.stat-box span{ color:var(--gray-600); font-size:13.5px; }

/* Testimonios */
.testimonial-card{
  background:var(--white); border-radius:var(--radius-lg); padding:30px; border:1px solid var(--gray-150);
  display:flex; flex-direction:column; gap:16px; height:100%;
}
.testimonial-stars{ color:var(--orange); display:flex; gap:3px; }
.testimonial-card p{ color:var(--gray-700); font-size:14.5px; line-height:1.7; }
.testimonial-author{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.testimonial-avatar{
  width:42px; height:42px; border-radius:50%; background:var(--orange-pale); color:var(--orange-dark);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display); flex-shrink:0;
}
.testimonial-author b{ display:block; font-size:14px; }
.testimonial-author span{ font-size:12.5px; color:var(--gray-600); }

/* Timeline / valores */
.value-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.value-item{ text-align:left; }
.value-num{ font-family:var(--font-mono); color:var(--orange); font-weight:600; font-size:13px; }
.value-item h4{ margin-top:10px; font-size:17px; }
.value-item p{ color:var(--gray-600); font-size:14px; margin-top:8px; line-height:1.6; }

/* Equipo */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.team-card{ text-align:center; }
.team-photo{
  aspect-ratio:1; border-radius:var(--radius-lg); background:linear-gradient(150deg,var(--orange-pale),var(--gray-100));
  display:flex; align-items:center; justify-content:center; color:var(--orange-dark); font-family:var(--font-display);
  font-weight:700; font-size:34px; margin-bottom:14px; overflow:hidden;
}
.team-card h4{ font-size:16px; }
.team-card span{ color:var(--orange-dark); font-size:13px; font-weight:600; }
.team-card p{ color:var(--gray-600); font-size:13px; margin-top:6px; }

/* ======================= FORMULARIOS ======================= */
.form-panel{ background:var(--white); border-radius:var(--radius-lg); padding:36px; border:1px solid var(--gray-150); box-shadow:var(--shadow-sm); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group{ margin-bottom:20px; }
.form-group label{ display:block; font-weight:600; font-size:13.5px; margin-bottom:8px; color:var(--gray-700); }
.form-group .required{ color:var(--orange); }
.form-control{
  width:100%; padding:13px 16px; border:1.5px solid var(--gray-300); border-radius:10px; background:var(--off-white);
  font-size:14.5px; transition:border-color .18s ease, box-shadow .18s ease;
}
.form-control:focus{ border-color:var(--orange); box-shadow:0 0 0 4px var(--orange-pale); outline:none; }
textarea.form-control{ resize:vertical; min-height:130px; }
.form-hint{ font-size:12.5px; color:var(--gray-400); margin-top:6px; }
.form-error{ font-size:12.5px; color:var(--error); margin-top:6px; display:none; }
.form-group.has-error .form-control{ border-color:var(--error); }
.form-group.has-error .form-error{ display:block; }
.form-alert{ padding:14px 18px; border-radius:10px; font-size:14px; font-weight:600; margin-bottom:22px; display:none; }
.form-alert.show{ display:flex; align-items:center; gap:10px; }
.form-alert.success{ background:#E7F6EC; color:var(--success); }
.form-alert.error{ background:#FCE8EC; color:var(--error); }
.honeypot-field{ position:absolute; left:-9999px; opacity:0; height:0; }

/* ======================= CERTIFICACIONES ======================= */
.cert-hero{ background:linear-gradient(150deg, var(--ink), var(--orange-deep)); padding:70px 0 100px; }
.cert-search-panel{
  background:var(--white); border-radius:var(--radius-lg); padding:36px; box-shadow:var(--shadow-lg);
  max-width:640px; margin:-56px auto 0; position:relative; z-index:5;
}
.cert-search-row{ display:flex; gap:12px; }
.cert-search-row .form-control{ font-family:var(--font-mono); letter-spacing:.03em; }
.cert-security-note{ display:flex; align-items:flex-start; gap:10px; margin-top:16px; color:var(--gray-600); font-size:12.5px; }
.cert-security-note svg{ flex-shrink:0; color:var(--orange); margin-top:1px; }

.cert-results{ margin-top:28px; }
.cert-result-card{
  border:1.5px solid var(--gray-150); border-radius:var(--radius-md); padding:20px 22px; display:flex;
  align-items:center; justify-content:space-between; gap:18px; margin-bottom:14px; flex-wrap:wrap;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.cert-result-card:hover{ border-color:var(--orange); box-shadow:var(--shadow-sm); }
.cert-result-info h4{ font-size:15.5px; }
.cert-result-meta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; font-size:12.5px; color:var(--gray-600); }
.cert-result-meta span{ display:flex; align-items:center; gap:5px; }
.cert-code{ font-family:var(--font-mono); background:var(--gray-100); padding:2px 8px; border-radius:6px; }
.cert-empty, .cert-loading{ text-align:center; padding:40px 20px; color:var(--gray-600); }
.cert-empty svg{ color:var(--gray-400); margin-bottom:14px; }

/* ======================= LISTADO CAPACITACIONES ======================= */
.course-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.course-card{
  background:var(--white); border:1px solid var(--gray-150); border-radius:var(--radius-lg); overflow:hidden;
  display:flex; flex-direction:column; transition:box-shadow .2s ease, transform .2s ease;
}
.course-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.course-card-top{
  padding:26px 26px 0; display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
}
.course-badge{
  background:var(--orange-pale); color:var(--orange-dark); font-size:11.5px; font-weight:700;
  padding:5px 12px; border-radius:999px; text-transform:uppercase; letter-spacing:.04em;
}
.course-card-body{ padding:16px 26px 26px; }
.course-card h3{ font-size:19px; margin-bottom:8px; }
.course-card .course-target{ color:var(--orange-dark); font-size:12.5px; font-weight:600; margin-bottom:10px; }
.course-card p.course-desc{ color:var(--gray-600); font-size:14px; line-height:1.6; }
.course-meta-row{ display:flex; flex-wrap:wrap; gap:16px; margin:18px 0; font-size:12.5px; color:var(--gray-600); }
.course-meta-row span{ display:flex; align-items:center; gap:6px; }
.course-meta-row svg{ color:var(--orange); }

/* ======================= FRANJA CAPACITACIONES DESTACADA ======================= */
.cap-priority-band{
  background:linear-gradient(135deg, var(--orange-pale-2), var(--white)); border:1.5px solid var(--orange-pale);
  border-radius:var(--radius-lg); padding:40px; display:grid; grid-template-columns:1fr auto; gap:28px; align-items:center;
}
.cap-priority-band h3{ font-size:24px; }
.cap-priority-band p{ color:var(--gray-700); margin-top:10px; max-width:520px; }

/* ======================= PÁGINA QUIÉNES SOMOS ======================= */
.about-split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.about-image{
  aspect-ratio:1/1.05; border-radius:var(--radius-lg); background:linear-gradient(150deg,var(--gray-100),var(--orange-pale-2));
  display:flex; align-items:center; justify-content:center; padding:50px;
}
.mission-vision-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:40px; }
.mv-card{ background:var(--ink); color:var(--white); border-radius:var(--radius-lg); padding:32px; }
.mv-card.alt{ background:var(--orange); }
.mv-card h4{ color:var(--white); font-size:18px; margin-bottom:12px; }
.mv-card p{ color:rgba(255,255,255,.82); font-size:14.5px; line-height:1.7; }

/* ======================= FOOTER ======================= */
.site-footer{ background:var(--ink); color:var(--gray-300); padding:72px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,.10); }
.footer-seal{ width:64px; height:64px; margin-bottom:16px; }
.footer-tagline{ font-size:13.5px; line-height:1.7; color:rgba(255,255,255,.6); max-width:280px; }
.footer-social{ display:flex; gap:10px; margin-top:20px; }
.social-icon{
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); color:var(--white);
  display:flex; align-items:center; justify-content:center; transition:background .2s ease, transform .2s ease;
}
.social-icon:hover{ background:var(--orange); transform:translateY(-3px); }
.footer-col h3{ color:var(--white); font-size:14px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:14px; color:rgba(255,255,255,.65); }
.footer-col a:hover{ color:var(--orange-light); }
.footer-contact li{ font-size:14px; color:rgba(255,255,255,.65); line-height:1.6; }
.footer-bottom{ padding:22px 0; font-size:12.5px; color:rgba(255,255,255,.45); text-align:center; }

/* ======================= WHATSAPP FLOTANTE ======================= */
.whatsapp-float{
  position:fixed; bottom:26px; left:26px; width:58px; height:58px; border-radius:50%;
  background:#25D366; color:var(--white); display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(37,211,102,.45); z-index:600; animation:pulse-wa 2.6s infinite;
}
@keyframes pulse-wa{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,.45), 0 10px 26px rgba(37,211,102,.45); }
  70%{ box-shadow:0 0 0 14px rgba(37,211,102,0), 0 10px 26px rgba(37,211,102,.45); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0), 0 10px 26px rgba(37,211,102,.45); }
}

/* ======================= CHATBOT ======================= */
.chatbot-wrapper{ position:fixed; bottom:26px; right:26px; z-index:700; display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.chatbot-launcher{
  width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,var(--orange),var(--orange-dark));
  color:var(--white); border:none; box-shadow:0 12px 28px rgba(232,89,12,.4); position:relative;
  display:flex; align-items:center; justify-content:center;
}
.chatbot-launcher .icon-close{ display:none; }
.chatbot-wrapper.is-open .chatbot-launcher .icon-chat{ display:none; }
.chatbot-wrapper.is-open .chatbot-launcher .icon-close{ display:block; }
.chatbot-launcher-badge{
  position:absolute; top:-4px; right:-4px; background:var(--ink); color:var(--white); font-size:11px;
  width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700;
  border:2px solid var(--off-white);
}
.chatbot-wrapper.is-open .chatbot-launcher-badge{ display:none; }

.chatbot-panel{
  width:360px; max-width:calc(100vw - 40px); height:500px; max-height:70vh; background:var(--white);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); display:flex; flex-direction:column; overflow:hidden;
  border:1px solid var(--gray-150); opacity:0; visibility:hidden; transform:translateY(16px) scale(.97);
  transition:all .22s ease; transform-origin:bottom right;
}
.chatbot-wrapper.is-open .chatbot-panel{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.chatbot-header{ background:linear-gradient(135deg,var(--ink),var(--orange-deep)); padding:18px 20px; }
.chatbot-header-info{ display:flex; align-items:center; gap:12px; }
.chatbot-avatar{
  width:38px; height:38px; border-radius:50%; background:var(--orange); color:var(--white); font-family:var(--font-display);
  font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.chatbot-title{ color:var(--white); font-weight:700; font-size:15px; }
.chatbot-status{ color:rgba(255,255,255,.7); font-size:12px; display:flex; align-items:center; gap:6px; }
.dot-online{ width:7px; height:7px; border-radius:50%; background:#43D67D; display:inline-block; }
.chatbot-messages{ flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:12px; background:var(--gray-100); }
.chat-msg{ max-width:82%; padding:11px 14px; border-radius:14px; font-size:13.5px; line-height:1.55; }
.chat-msg.bot{ align-self:flex-start; background:var(--white); border:1px solid var(--gray-150); border-bottom-left-radius:4px; }
.chat-msg.user{ align-self:flex-end; background:var(--orange); color:var(--white); border-bottom-right-radius:4px; }
.chat-msg a{ color:var(--orange-dark); font-weight:600; text-decoration:underline; }
.chat-msg.user a{ color:var(--white); }
.chatbot-quick-replies{ display:flex; flex-wrap:wrap; gap:8px; padding:0 18px 12px; background:var(--gray-100); }
.chip-btn{
  background:var(--white); border:1.3px solid var(--gray-300); border-radius:999px; padding:7px 13px;
  font-size:12px; font-weight:600; color:var(--gray-700); transition:all .18s ease;
}
.chip-btn:hover{ border-color:var(--orange); color:var(--orange-dark); }
.chatbot-input-row{ display:flex; gap:8px; padding:14px; border-top:1px solid var(--gray-150); background:var(--white); }
.chatbot-input-row input{ flex:1; border:1.5px solid var(--gray-300); border-radius:999px; padding:11px 16px; font-size:13.5px; }
.chatbot-input-row input:focus{ outline:none; border-color:var(--orange); }
.chatbot-input-row button{
  width:40px; height:40px; border-radius:50%; background:var(--orange); color:var(--white); border:none;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.chatbot-disclaimer{ font-size:10.5px; color:var(--gray-400); text-align:center; padding:0 14px 12px; background:var(--white); }
.typing-dots{ display:inline-flex; gap:4px; padding:4px 0; }
.typing-dots span{ width:6px; height:6px; border-radius:50%; background:var(--gray-400); animation:typing 1.2s infinite ease-in-out; }
.typing-dots span:nth-child(2){ animation-delay:.15s; }
.typing-dots span:nth-child(3){ animation-delay:.3s; }
@keyframes typing{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }

/* ======================= COOKIES ======================= */
.cookie-consent{
  position:fixed; left:22px; bottom:22px; z-index:800; width:340px; max-width:calc(100vw - 44px);
  background:var(--white); border-radius:var(--radius-md); box-shadow:var(--shadow-lg); border:1px solid var(--gray-150);
  padding:20px; display:flex; flex-direction:column; gap:12px;
  animation:slide-up .4s ease;
}
@keyframes slide-up{ from{ transform:translateY(24px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
.cookie-consent-icon{ color:var(--orange); }
.cookie-consent-text{ font-size:12.5px; color:var(--gray-600); line-height:1.6; }
.cookie-consent-text a{ color:var(--orange-dark); font-weight:600; text-decoration:underline; }
.cookie-consent-actions{ display:flex; gap:10px; }
.cookie-consent-actions .btn{ flex:1; }

/* ======================= PANEL ADMIN ======================= */
.admin-body{ background:var(--gray-100); min-height:100vh; }
.admin-shell{ display:grid; grid-template-columns:250px 1fr; min-height:100vh; }
.admin-sidebar{ background:var(--ink); color:var(--white); padding:26px 18px; }
.admin-sidebar .brand{ margin-bottom:30px; }
.admin-sidebar .brand-name, .admin-sidebar .brand-sub{ color:var(--white); }
.admin-nav a{
  display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:10px; color:rgba(255,255,255,.7);
  font-size:14px; font-weight:600; margin-bottom:4px;
}
.admin-nav a:hover, .admin-nav a.active{ background:var(--orange); color:var(--white); }
.admin-main{ padding:32px 36px; }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.admin-card{ background:var(--white); border-radius:var(--radius-md); padding:26px; border:1px solid var(--gray-150); margin-bottom:22px; }
.admin-table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.admin-table th{ text-align:left; padding:12px 14px; color:var(--gray-600); font-size:12px; text-transform:uppercase; letter-spacing:.04em; border-bottom:2px solid var(--gray-150); }
.admin-table td{ padding:13px 14px; border-bottom:1px solid var(--gray-150); }
.admin-table tr:hover td{ background:var(--gray-100); }
.status-pill{ padding:4px 11px; border-radius:999px; font-size:11.5px; font-weight:700; }
.status-pill.ok{ background:#E7F6EC; color:var(--success); }
.status-pill.pending{ background:var(--orange-pale); color:var(--orange-dark); }
.login-shell{ min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg,var(--ink),var(--orange-deep)); padding:24px; }
.login-card{ background:var(--white); border-radius:var(--radius-lg); padding:40px; width:100%; max-width:400px; box-shadow:var(--shadow-lg); }

/* ======================= UTILIDADES ======================= */
.mt-0{ margin-top:0 !important; }
.animate-in{ animation:fade-up .6s ease both; }
@keyframes fade-up{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:translateY(0); } }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1080px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-media{ order:-1; max-width:480px; margin:0 auto; }
  .card-grid, .team-grid, .value-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .course-grid{ grid-template-columns:1fr; }
  .cap-priority-band{ grid-template-columns:1fr; text-align:center; }
  .cap-priority-band .btn{ margin:0 auto; }
}

@media (max-width: 900px){
  .desktop-nav, .btn-header-cta{ display:none; }
  .mobile-nav-toggle{ display:flex; }
  .about-split{ grid-template-columns:1fr; }
  .about-image{ order:-1; }
  .mission-vision-grid{ grid-template-columns:1fr; }
  .stats-row{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 720px){
  .container{ padding:0 18px; }
  .section{ padding:60px 0; }
  .card-grid, .value-grid, .team-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .cta-band{ flex-direction:column; text-align:center; padding:36px 26px; }
  .cta-band h3{ margin:0 auto; }
  .form-row{ grid-template-columns:1fr; }
  .cert-search-row{ flex-direction:column; }
  .hero{ padding:56px 0 76px; }
  .brand-sub{ display:none; }
  .cert-search-panel{ padding:24px; margin-top:-40px; }
  .chatbot-panel{ width:calc(100vw - 32px); right:0; }
  .chatbot-wrapper{ right:16px; bottom:16px; }
  .whatsapp-float{ left:16px; bottom:16px; width:52px; height:52px; }
  .cookie-consent{ left:16px; bottom:16px; width:calc(100vw - 32px); }
  .admin-shell{ grid-template-columns:1fr; }
  .admin-sidebar{ display:none; }
}
