/* ============================================================
   Safe Martin Capacitaciones — styles.css
   Paleta: Navy #1B2F6B | Orange #F97316
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1B2F6B;
  --navy-dark: #122050;
  --navy-mid:  #243d89;
  --orange:    #F97316;
  --orange-dk: #ea6a0a;
  --white:     #FFFFFF;
  --off-white: #F8F9FA;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-400:  #94A3B8;
  --gray-600:  #475569;
  --gray-800:  #1E293B;
  --text:      #111827;
  --whatsapp:  #25D366;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);

  --transition: 200ms ease;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--gray-600); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 640px; margin: .75rem auto 0; font-size: 1.0625rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dk); box-shadow: 0 4px 14px rgba(249,115,22,.35); }

.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--white); }
.btn-secondary:hover { background: transparent; color: var(--white); }

.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-wa { background: var(--whatsapp); color: var(--white); }
.btn-wa:hover { background: #1fbd5c; box-shadow: 0 4px 14px rgba(37,211,102,.35); }

.btn-lg { padding: .9375rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}
.nav-logo .anchor { font-size: 1.375rem; line-height: 1; }
.nav-logo span span { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  padding: .5rem .875rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  background: var(--gray-100);
}

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.btn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
/* Carrusel: diapositivas */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,47,107,.82);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 5rem 0;
}

/* Indicadores (puntos) */
.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 3;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 300ms, border-color 300ms, transform 300ms;
}
.hero-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.25);
}
.hero-dot:hover:not(.active) { border-color: rgba(255,255,255,.9); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(249,115,22,.18);
  border: 1px solid rgba(249,115,22,.4);
  color: #fca965;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 1.0625rem;
  margin-bottom: 2.25rem;
  max-width: 580px;
}
.hero-sub strong { color: rgba(255,255,255,.95); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Sección Video ───────────────────────────────────────── */
.video-section {
  background: var(--gray-100);
  padding: 5rem 0;
  text-align: center;
}
.video-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  background: #FF0000;
  color: #fff;
  padding: .9375rem 2.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 200ms, transform 200ms, box-shadow 200ms;
  box-shadow: 0 4px 14px rgba(255,0,0,.25);
}
.btn-youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,0,0,.35);
}
.video-note {
  font-size: .875rem;
  color: var(--gray-400);
  margin: 0;
}

/* ── Credentials / Acreditaciones ───────────────────────────── */
.credentials { background: var(--gray-100); padding: 4rem 0; }
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.credential-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.credential-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.credential-card .cred-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.credential-card h4 { font-size: .9375rem; color: var(--navy); margin-bottom: .375rem; }
.credential-card p { font-size: .8125rem; color: var(--gray-600); line-height: 1.5; margin: 0; }
.cred-verify {
  text-align: center;
  margin-top: 2rem;
  font-size: .9375rem;
  color: var(--gray-600);
}
.cred-verify a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ── Cursos Cards ────────────────────────────────────────────── */
.courses { background: var(--white); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.course-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.course-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gray-200);
}
.course-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 2.5rem;
}
.course-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .875rem;
}
.badge-mar { background: #EFF6FF; color: #1d4ed8; }
.badge-industrial { background: #FFF7ED; color: #c2410c; }
.badge-sspa { background: #F0FDF4; color: #15803d; }
.badge-ambiental { background: #F0FDF4; color: #166534; }
.badge-iadc { background: #FEF3C7; color: #92400e; }

.course-card-body h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.course-meta { display: flex; gap: 1rem; margin: .75rem 0 1.25rem; }
.course-meta span {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8125rem;
  color: var(--gray-600);
  font-weight: 500;
}
.course-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ── Instructores ────────────────────────────────────────────── */
.instructors { background: var(--gray-100); }
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.instructor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.instructor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.instructor-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gray-200);
}
.instructor-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,.3);
}
.instructor-body { padding: 1.5rem; }
.instructor-body h3 { font-size: 1.125rem; margin-bottom: .25rem; }
.instructor-role {
  font-size: .875rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: .875rem;
}
.instructor-certs {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.instructor-certs span {
  font-size: .8125rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: .375rem;
}
.instructor-certs span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── Por qué Safe Martin ─────────────────────────────────────── */
.why { background: var(--navy); }
.why .section-header h2, .why .section-header p { color: var(--white); }
.why .section-header p { color: rgba(255,255,255,.7); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: background var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.10); }
.why-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .75rem;
}
.why-card h4 { color: var(--white); font-size: 1.0625rem; margin-bottom: .5rem; }
.why-card p { color: rgba(255,255,255,.65); font-size: .9375rem; margin: 0; }

/* ── Facebook Feed ───────────────────────────────────────────── */
.facebook-section { background: var(--white); }
.fb-widget-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.fb-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem 2rem;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  text-align: center;
}
.fb-fallback.visible { display: flex; }
.fb-fallback p { font-size: .9375rem; color: var(--gray-600); }

/* ── Contacto Rápido ─────────────────────────────────────────── */
.contact-quick { background: var(--gray-100); }
.contact-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}
.contact-info-text h4 { font-size: .9375rem; margin-bottom: .125rem; color: var(--navy); }
.contact-info-text p, .contact-info-text a {
  font-size: .9375rem;
  color: var(--gray-600);
  margin: 0;
}
.contact-info-text a:hover { color: var(--orange); }
.contact-cta-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
}
.contact-cta-box h3 { color: var(--white); margin-bottom: .75rem; }
.contact-cta-box p { color: rgba(255,255,255,.7); margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--gray-800); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-col ul a { font-size: .9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--orange); }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--orange); }

/* ── WhatsApp Floating Button ────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: .625rem;
}
.wa-tooltip {
  background: var(--gray-800);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  padding: .375rem .875rem;
  border-radius: 100px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 200ms, transform 200ms;
  white-space: nowrap;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
.wa-btn {
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.55); }
.wa-btn svg { width: 28px; height: 28px; fill: var(--white); }

/* ── Page Hero (páginas internas) ───────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 4.5rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.0625rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ── Cursos Page ─────────────────────────────────────────────── */
.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .5rem 1.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--gray-200);
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition);
  background: var(--white);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.courses-catalog { background: var(--off-white); }
.course-category-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.course-list-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: .75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.course-list-item:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.course-list-name { flex: 1; font-weight: 600; font-size: .9375rem; color: var(--gray-800); }
.course-list-hrs {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
}

/* ── Nosotros ────────────────────────────────────────────────── */
.about-story { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gray-400);
}
.iso-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--orange);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: var(--radius);
}
.about-text { display: flex; flex-direction: column; gap: 1.25rem; }
.about-text p { font-size: 1.0rem; }
.about-stat-row { display: flex; gap: 2rem; margin-top: .5rem; }
.about-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--navy);
}
.about-stat span { font-size: .875rem; color: var(--gray-600); }

.values-section { background: var(--gray-100); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.value-chip {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  border-left: 3px solid var(--orange);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-200);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-400);
}

/* ── Contacto Page ───────────────────────────────────────────── */
.contact-form-section { background: var(--white); }
.contact-page-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--gray-800); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,47,107,.10);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .8125rem; color: var(--gray-400); }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-top: 1.5rem;
}
.map-embed iframe { display: block; width: 100%; height: 300px; border: none; }

/* ── Blog ────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.blog-post { border-bottom: 1px solid var(--gray-200); margin-bottom: 3.5rem; padding-bottom: 3.5rem; }
.blog-post:last-child { border-bottom: none; }
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: .8125rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.blog-post-meta .category {
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  padding: .2rem .625rem;
  border-radius: 100px;
}
.blog-post h2 { font-size: clamp(1.375rem, 3vw, 2rem); margin-bottom: 1rem; }
.blog-post p { font-size: 1rem; line-height: 1.75; }
.blog-post h3 { font-size: 1.25rem; margin: 1.75rem 0 .75rem; }
.blog-post ul { list-style: disc; padding-left: 1.5rem; color: var(--gray-600); }
.blog-post ul li { margin-bottom: .375rem; font-size: .9375rem; }
.blog-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}
.sidebar-widget h4 { font-family: var(--font-body); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); font-weight: 700; margin-bottom: 1rem; }
.sidebar-widget ul { display: flex; flex-direction: column; gap: .75rem; }
.sidebar-widget ul li a { font-size: .9rem; color: var(--gray-600); }
.sidebar-widget ul li a:hover { color: var(--navy); }

/* ── Legal Pages ─────────────────────────────────────────────── */
.legal-content { background: var(--white); }
.legal-body { max-width: 800px; margin: 0 auto; }
.legal-body h2 { font-size: 1.5rem; margin: 2.5rem 0 .875rem; }
.legal-body h3 { font-size: 1.125rem; margin: 1.75rem 0 .625rem; }
.legal-body p { font-size: .9375rem; line-height: 1.75; margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ul li { font-size: .9375rem; margin-bottom: .375rem; color: var(--gray-600); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .875rem; }
.legal-body th { background: var(--gray-100); color: var(--navy); font-weight: 700; text-align: left; padding: .75rem 1rem; border: 1px solid var(--gray-200); }
.legal-body td { padding: .75rem 1rem; border: 1px solid var(--gray-200); color: var(--gray-600); }
.legal-body tr:nth-child(even) td { background: var(--gray-100); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-page-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .btn-hamburger { display: flex; }
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 68px 0 0;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: .375rem;
    border-top: 1px solid var(--gray-200);
    overflow-y: auto;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: .875rem 1rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    display: block;
  }
  .mobile-menu a:hover { background: var(--gray-100); color: var(--navy); }
  .mobile-menu .btn-wa { margin-top: 1rem; justify-content: center; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .contact-quick-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .course-list-item { flex-wrap: wrap; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .about-stat-row { flex-wrap: wrap; }
}
