/* =========================================================
   Hiram Torres Montalvo — Hoja de estilos principal
   Paleta basada en el logo: azul marino + naranja + blanco
   ========================================================= */

:root {
  --navy: #14205c;
  --navy-dark: #0a1338;
  --navy-light: #1e2f7a;
  --orange: #f26522;
  --orange-light: #ff8a3d;
  --white: #ffffff;
  --off-white: #f6f7fb;
  --gray-100: #eef0f6;
  --gray-300: #cbd0e0;
  --gray-500: #6b7290;
  --gray-700: #3a3f5c;
  --ink: #12142a;

  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 14px rgba(10, 19, 56, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 19, 56, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 19, 56, 0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section.alt { background: var(--off-white); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

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

.empty-state {
  text-align: center;
  color: var(--gray-500);
  padding: 48px 0;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(242, 101, 34, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(242, 101, 34, 0.45); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

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

.btn-cta {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-cta:hover { background: var(--off-white); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: 8px; }
.btn-danger { background: #fdeceb; color: #c62828; }
.btn-danger:hover { background: #f9d5d2; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 19, 56, 0.0);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(10, 19, 56, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--white); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-heading); color: var(--white); }
.brand-text strong { font-size: 1.05rem; font-weight: 800; }
.brand-text small { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--orange-light); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }
.main-nav a.btn-nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  margin-left: 8px;
}
.main-nav a.btn-nav-cta:hover { background: linear-gradient(135deg, var(--orange-light), var(--orange)); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 3px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  overflow: hidden;
  padding-top: 100px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(242,101,34,0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.hero-star { position: absolute; color: rgba(255,255,255,0.12); animation: float 6s ease-in-out infinite; pointer-events: none; }
.hero-star-1 { font-size: 3rem; top: 18%; left: 8%; animation-delay: 0s; }
.hero-star-2 { font-size: 1.6rem; top: 65%; left: 88%; animation-delay: 1.5s; color: rgba(242,101,34,0.25); }
.hero-star-3 { font-size: 2rem; top: 78%; left: 15%; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(12deg); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-bottom: 110px; }
.hero-copy .eyebrow { color: var(--orange-light); }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-subtitle { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; }
.hero-photo-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-photo-frame::before {
  content: '';
  position: absolute; inset: -10px;
  border: 2px dashed rgba(242,101,34,0.4);
  border-radius: calc(var(--radius-lg) + 10px);
  z-index: -1;
}
.hero-photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 24px;
}
.hero-photo-placeholder i { font-size: 4.5rem; color: rgba(255,255,255,0.35); }
.hero-photo-placeholder span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.hero-photo-placeholder.small i { font-size: 3rem; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }

.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; }
.hero-wave path { fill: var(--off-white); }

/* ---------- Stats ---------- */
.stats-section { padding: 64px 0; background: var(--off-white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-number { display: block; font-family: var(--font-heading); font-size: 2.1rem; font-weight: 900; color: var(--orange); margin-bottom: 6px; }
.stat-label { font-size: 0.88rem; color: var(--gray-700); font-weight: 600; }

/* ---------- Quote ---------- */
.quote-section { padding: 72px 0; }
.quote-box {
  max-width: 780px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.quote-icon { font-size: 2rem; color: var(--orange); opacity: 0.8; margin-bottom: 16px; }
.quote-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.4; margin-bottom: 16px; }
.quote-author { color: var(--orange-light); font-weight: 700; }

/* ---------- Bio teaser ---------- */
.bio-teaser-grid, .bio-full-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.bio-image-frame {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.bio-image-frame::after {
  content: '';
  position: absolute; top: 16px; right: -16px; bottom: -16px; left: 16px;
  border: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.bio-image-frame.large { aspect-ratio: 4/5; }
.bio-photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.bio-teaser-copy p, .bio-full-copy p { color: var(--gray-700); margin-bottom: 16px; font-size: 1.02rem; }

.bio-quote-card {
  margin-top: 24px;
  background: var(--off-white);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.bio-quote-card i { color: var(--orange); margin-bottom: 8px; display: block; }
.bio-quote-card p { font-style: italic; color: var(--navy); font-weight: 600; }

/* ---------- Mission ---------- */
.mission-section { background: var(--off-white); }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mission-card {
  background: var(--white);
  padding: 40px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mission-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.mission-card i { font-size: 2.2rem; color: var(--orange); margin-bottom: 18px; }
.mission-card p { color: var(--gray-700); margin-top: 10px; }

.mission-strip {
  text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  padding: 64px 24px;
}
.mission-strip i { font-size: 2.4rem; margin-bottom: 14px; }
.mission-strip h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 12px; }
.mission-strip p { max-width: 700px; margin: 0 auto; font-size: 1.05rem; opacity: 0.95; }

/* ---------- Section heading ---------- */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-cta { text-align: center; margin-top: 40px; }

/* ---------- Cards grid (news/events) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.news-card-image { aspect-ratio: 16/10; overflow: hidden; background: var(--off-white); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card-image img { transform: scale(1.08); }
.news-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 2.5rem; background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.news-card-placeholder i { color: rgba(255,255,255,0.3); }
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: 0.78rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.news-card-body h3 { margin-bottom: 10px; font-size: 1.15rem; }
.news-card-body p { color: var(--gray-700); font-size: 0.94rem; flex: 1; margin-bottom: 14px; }
.read-more { color: var(--navy); font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
.news-card:hover .read-more { color: var(--orange); }

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.event-card.past { opacity: 0.7; }
.event-date-badge {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: var(--radius-sm);
  min-width: 64px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.event-date-badge .day { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange-light); }
.event-card-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.event-card-body p { color: var(--gray-700); font-size: 0.9rem; margin-top: 4px; }
.event-time { color: var(--gray-500); }

/* ---------- CTA section ---------- */
.cta-section {
  background: linear-gradient(150deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
}
.cta-inner h2 { color: var(--white); margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
  color: var(--white);
  padding: 160px 0 80px;
  text-align: center;
}
.page-hero.small { text-align: left; padding: 150px 0 40px; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.page-hero .eyebrow { color: var(--orange-light); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-light); font-weight: 700; margin-bottom: 18px; font-size: 0.9rem; }
.back-link:hover { color: var(--white); }
.post-date { display: flex; align-items: center; gap: 8px; }
.event-meta { display: flex; gap: 24px; flex-wrap: wrap; color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.event-meta span { display: flex; align-items: center; gap: 8px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.timeline::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: linear-gradient(var(--navy), var(--orange));
  transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding: 0 48px 56px; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-marker {
  position: absolute; top: 4px; width: 18px; height: 18px;
  background: var(--orange); border: 4px solid var(--white); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--navy);
}
.timeline-item.left .timeline-marker { right: -9px; }
.timeline-item.right .timeline-marker { left: -9px; }
.timeline-year { display: inline-block; font-family: var(--font-heading); font-weight: 800; color: var(--orange); font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 6px; }
.timeline-content { background: var(--white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.timeline-content:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.timeline-content h3 { margin-bottom: 8px; font-size: 1.05rem; }
.timeline-content p { color: var(--gray-700); font-size: 0.92rem; }

/* ---------- Article ---------- */
.article-container { max-width: 780px; margin: 0 auto; }
.article-cover { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; }
.article-body p { margin-bottom: 20px; font-size: 1.06rem; color: var(--gray-700); }
.share-row { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray-100); }
.share-row span { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.share-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--off-white); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.share-row a:hover { background: var(--orange); color: var(--white); transform: translateY(-3px); }

.related-section { background: var(--off-white); }

/* ---------- Legal pages ---------- */
.legal-container { max-width: 780px; margin: 0 auto; }
.legal-container h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.3rem; }
.legal-container h2:first-child { margin-top: 0; }
.legal-container p { color: var(--gray-700); margin-bottom: 16px; font-size: 1.02rem; }
.legal-container ul { margin: 0 0 16px 20px; color: var(--gray-700); }
.legal-container li { list-style: disc; margin-bottom: 8px; font-size: 1.02rem; }
.legal-container a { color: var(--orange); font-weight: 600; }
.legal-container a:hover { text-decoration: underline; }
.legal-cross-link { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray-100); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.pagination a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--off-white); color: var(--navy); font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.pagination a.active, .pagination a:hover { background: var(--orange); color: var(--white); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10,19,56,0.85));
  color: var(--white); font-size: 0.8rem; padding: 24px 12px 10px;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,19,56,0.94);
  display: none; align-items: center; justify-content: center; z-index: 2000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem;
}
.lightbox-close:hover { background: var(--orange); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { color: var(--gray-700); margin-bottom: 32px; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.contact-item i { width: 46px; height: 46px; border-radius: 50%; background: var(--off-white); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.82rem; color: var(--gray-500); font-weight: 600; }
.contact-item span { color: var(--navy); font-weight: 700; }

.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: var(--off-white); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background: var(--orange); color: var(--white); transform: translateY(-3px); }
.social-links.large a { width: 48px; height: 48px; }

.contact-form-wrap { background: var(--off-white); border-radius: var(--radius-lg); padding: 40px; }
.contact-form .form-row { margin-bottom: 20px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-row label { display: block; font-weight: 700; color: var(--navy); font-size: 0.88rem; margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300); background: var(--white); font-size: 0.96rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,101,34,0.12);
}
.form-row small { display: block; margin-top: 6px; color: var(--gray-500); font-size: 0.8rem; }

.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 22px; cursor: pointer;
}
.consent-row input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--orange); }
.consent-row span { font-size: 0.86rem; color: var(--gray-700); line-height: 1.5; }
.consent-row a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.consent-row a:hover { color: var(--orange); }

/* ---------- Alerts ---------- */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.92rem; font-weight: 600; }
.alert p { display: flex; align-items: center; gap: 10px; margin: 0; }
.alert p + p { margin-top: 6px; }
.alert-success { background: #e7f7ee; color: #1f7a4d; border: 1px solid #bfe8d1; }
.alert-error { background: #fdeceb; color: #c62828; border: 1px solid #f5c6c3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-logo { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; margin-bottom: 20px; }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-links a { display: block; margin-bottom: 10px; font-size: 0.92rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--orange-light); }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact i { color: var(--orange); width: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; font-size: 0.82rem; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--orange-light); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), visibility var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 160px 0; }
.not-found-code { font-family: var(--font-heading); font-size: 6rem; font-weight: 900; color: var(--orange); line-height: 1; }
.not-found h1 { margin: 16px 0; }
.not-found p { color: var(--gray-700); margin-bottom: 32px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .hero-actions { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .bio-teaser-grid, .bio-full-grid, .contact-grid { grid-template-columns: 1fr; }
  .bio-teaser-image, .bio-full-image { max-width: 420px; margin: 0 auto; }

  .mission-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 80vw);
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 28px 28px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 18px; }
  .main-nav a.btn-nav-cta { margin-left: 0; text-align: center; margin-top: 10px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item.left, .timeline-item.right { width: 100%; left: 0; text-align: left; padding: 0 0 40px 52px; }
  .timeline-item.left .timeline-marker, .timeline-item.right .timeline-marker { left: 11px; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .cards-grid, .stats-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-box { padding: 36px 24px; }
  .contact-form-wrap { padding: 28px 22px; }
  .page-hero { padding: 130px 0 56px; }
}
