/* ============================================
   Club Atletismo San Juan (CASJ) — Estilos
   ============================================ */

:root{
  --navy: #181c4a;
  --navy-2: #242a6b;
  --navy-3: #0f1230;
  --orange: #f4791f;
  --orange-2: #ff9a42;
  --blue: #2547a8;
  --ink: #1c2033;
  --gray: #6b7280;
  --gray-light: #f4f5fa;
  --border: #e6e7f0;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 34px rgba(15, 18, 48, .12);
  --shadow-sm: 0 6px 16px rgba(15, 18, 48, .08);
  --container: 1200px;
  --ff-head: 'Oswald', 'Arial Narrow', sans-serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
}
p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

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

/* ---------- Utilities ---------- */
.eyebrow{
  display:inline-block;
  font-family: var(--ff-head);
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(244,121,31,.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--alt{ background: var(--gray-light); }
.section--navy{ background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); color: #fff; }
.section--navy h2, .section--navy h3{ color:#fff; }
.section-head{ max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left{ margin-left:0; text-align:left; }
.section-title{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-sub{ color: var(--gray); font-size: 1.05rem; }
.section--navy .section-sub{ color: rgba(255,255,255,.75); }

.text-center{ text-align:center; }
.mt-0{ margin-top:0; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--ff-head);
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn-primary{ background: var(--orange); color:#fff; box-shadow: 0 10px 24px rgba(244,121,31,.35); }
.btn-primary:hover{ background: var(--orange-2); transform: translateY(-2px); }
.btn-outline{ border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover{ background: var(--navy); color:#fff; transform: translateY(-2px); }
.btn-outline-light{ border-color: rgba(255,255,255,.6); color:#fff; }
.btn-outline-light:hover{ background:#fff; color: var(--navy); transform: translateY(-2px); }
.btn-whatsapp{ background: var(--whatsapp); color:#fff; box-shadow: 0 10px 24px rgba(37,211,102,.35); }
.btn-whatsapp:hover{ background: var(--whatsapp-dark); transform: translateY(-2px); }
.btn-sm{ padding: 10px 18px; font-size: .8rem; }
.btn-block{ width:100%; justify-content:center; }

.badge-row{ display:flex; flex-wrap:wrap; gap:12px; }
.badge{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color:#fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: .85rem;
}
.badge svg{ width:16px; height:16px; color: var(--orange-2); }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:none; }

/* ---------- Preloader ---------- */
#preloader{
  position:fixed; inset:0; z-index:9999;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
  display:flex; align-items:center; justify-content:center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader img{
  width: 120px; height:auto;
  animation: preloaderPulse 1.3s ease-in-out infinite;
}
#preloader.loaded{ opacity:0; visibility:hidden; pointer-events:none; }
@keyframes preloaderPulse{
  0%, 100%{ transform: scale(1); opacity:1; }
  50%{ transform: scale(1.08); opacity:.7; }
}

/* ---------- Topbar ---------- */
.topbar{
  background: var(--navy-3);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:8px; padding-bottom:8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-info{ display:flex; gap:20px; flex-wrap:wrap; }
.topbar-info a{ display:inline-flex; align-items:center; gap:6px; }
.topbar-info a:hover{ color: var(--orange-2); }
.topbar-info svg{ width:14px; height:14px; }
.topbar-social{ display:flex; gap:10px; align-items:center; }
.topbar-social a{
  width:26px; height:26px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08);
  transition: background .2s ease;
}
.topbar-social a:hover{ background: var(--orange); }
.topbar-social svg{ width:14px; height:14px; }

/* ---------- Navbar ---------- */
.site-header{ position: sticky; top:0; z-index: 500; }
.navbar{
  background:#fff;
  box-shadow: 0 2px 14px rgba(15,18,48,.08);
}
.navbar .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:12px; padding-bottom:12px;
  gap: 20px;
}
.nav-brand{ display:flex; align-items:center; gap:12px; }
.nav-brand img{ height:52px; width:auto; border-radius:8px; }
.nav-brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.nav-brand-text strong{ font-family: var(--ff-head); font-size:1.05rem; color:var(--navy); letter-spacing:.5px; }
.nav-brand-text span{ font-size:.72rem; color: var(--orange); font-weight:600; letter-spacing:1px; text-transform:uppercase; }

.nav-links{ display:flex; align-items:center; gap: 30px; }
.nav-links a{
  font-family: var(--ff-head);
  font-size: .88rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--orange); border-color: var(--orange); }

.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius: 10px;
  background: var(--gray-light);
  border:none;
  align-items:center; justify-content:center;
}
.nav-toggle svg{ width:22px; height:22px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: linear-gradient(120deg, var(--navy-3) 0%, var(--navy-2) 55%, var(--blue) 100%);
  color:#fff;
  overflow:hidden;
  padding: 90px 0 100px;
}
.hero-slider{ position:absolute; inset:0; z-index:0; }
.hero-slide{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0; transition: opacity 1.4s ease;
}
.hero-slide.active{ opacity:1; }
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(120deg, rgba(15,18,48,.93) 0%, rgba(36,42,107,.88) 55%, rgba(37,71,168,.78) 100%);
}
.hero::before{
  content:"";
  position:absolute; inset:0; z-index:1;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 90px);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; z-index:1;
  right:-120px; top:-80px;
  width:520px; height:520px;
  background: radial-gradient(circle, rgba(244,121,31,.35), transparent 70%);
  pointer-events:none;
}
.hero .container{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items:center;
}
.hero-eyebrow{
  font-family: var(--ff-head);
  color: var(--orange-2);
  letter-spacing: 3px;
  font-size: .85rem;
  margin-bottom: 14px;
  display:block;
}
.hero h1{
  color:#fff;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  margin-bottom: 20px;
}
.hero h1 span{ color: var(--orange-2); }
.hero p.lead{
  color: rgba(255,255,255,.82);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 36px; }
.hero-visual{
  position:relative;
  display:flex; align-items:center; justify-content:center;
}
.hero-visual .bolt-frame{
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, var(--orange), var(--orange-2));
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: rotate(-2deg);
}
.hero-visual img{ border-radius: 16px; }
.badge-slider{
  position:relative; width:100%; aspect-ratio: 1/1;
  border-radius: 16px; overflow:hidden;
}
.badge-slider .hero-slide{ border-radius: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  position:relative;
  background: linear-gradient(120deg, var(--navy-3), var(--navy-2));
  color:#fff;
  padding: 64px 0;
  overflow: hidden;
}
.page-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 90px);
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ color:#fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 10px;}
.breadcrumb{ font-size:.85rem; color: rgba(255,255,255,.7); }
.breadcrumb a:hover{ color: var(--orange-2); }
.page-hero p.lead{ color: rgba(255,255,255,.8); max-width: 640px; margin-top:14px; }

/* ---------- Promo strip ---------- */
.promo-strip{
  background: var(--orange);
  color:#fff;
}
.promo-strip .container{
  display:flex; align-items:center; justify-content:center; gap:16px;
  padding: 12px 24px;
  text-align:center;
  flex-wrap: wrap;
  font-family: var(--ff-head);
  letter-spacing: .5px;
  font-size: .92rem;
}
.promo-strip a{ text-decoration: underline; }

/* ---------- About preview ---------- */
.about-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items:center;
}
.about-values{ display:grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap:16px; margin-top:26px; }
.value-chip{
  display:flex; align-items:center; gap:10px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .88rem;
  font-weight:600;
  color: var(--navy);
}
.value-chip svg{ width:20px; height:20px; color: var(--orange); flex-shrink:0; }
.about-photo{
  position:relative;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  padding: 34px;
  color:#fff;
  box-shadow: var(--shadow);
}
.about-photo img{ margin: 0 auto 18px; max-height:150px; width:auto; }

/* ---------- Category / service cards ---------- */
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap:24px; }
.grid-vals{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:24px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap:24px; }

.card{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  height:100%;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon{
  width:56px; height:56px;
  border-radius: 14px;
  background: rgba(244,121,31,.12);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.card-icon svg{ width:28px; height:28px; color: var(--orange); }
.card h3{ font-size: 1.2rem; margin-bottom: 10px; }
.card p{ color: var(--gray); font-size: .95rem; margin-bottom: 14px; }
.card-link{ font-family: var(--ff-head); font-size:.82rem; letter-spacing:1px; color: var(--orange); text-transform:uppercase; display:inline-flex; align-items:center; gap:6px; }
.card-link svg{ width:16px; height:16px; transition: transform .2s ease; }
.card-link:hover svg{ transform: translateX(4px); }

.category-card{ text-align:center; }
.category-card .cat-logo{
  width:88px; height:88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gray-light);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  border: 3px solid var(--orange);
}
.category-card .cat-logo img{ width:100%; height:100%; object-fit:cover; }

/* ---------- Coaches ---------- */
.coach-card{ text-align:center; }
.coach-avatar{
  width:110px; height:110px; border-radius:50%;
  margin: 0 auto 18px;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--ff-head);
  font-size: 2rem;
  letter-spacing:1px;
  border: 4px solid rgba(244,121,31,.35);
}
.coach-card h3{ margin-bottom:4px; font-size:1.1rem; }
.coach-role{ color: var(--orange); font-weight:600; font-size:.85rem; text-transform:uppercase; letter-spacing:1px; margin-bottom:12px; display:block; }

/* ---------- Events ---------- */
.filter-tabs{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom: 40px; }
.filter-tab{
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background:#fff;
  font-family: var(--ff-head);
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  transition: all .2s ease;
}
.filter-tab:hover{ border-color: var(--orange); }
.filter-tab.active{ background: var(--navy); border-color: var(--navy); color:#fff; }

.events-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.event-card{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  display:flex; flex-direction:column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.event-banner{
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color:#fff;
  padding: 26px;
  position:relative;
}
.event-banner.is-past{ background: linear-gradient(135deg, #565b7c, #3a3e5c); }
.event-status{
  position:absolute; top:16px; right:16px;
  font-size:.68rem; letter-spacing:1px; text-transform:uppercase;
  background: var(--orange); color:#fff;
  padding: 5px 10px; border-radius:999px;
  font-family: var(--ff-head);
}
.event-status.is-past{ background: rgba(255,255,255,.25); }
.event-date{ font-family: var(--ff-head); font-size:1.6rem; letter-spacing:1px; }
.event-cat{ font-size:.78rem; opacity:.8; text-transform:uppercase; letter-spacing:1px; }
.event-body{ padding: 22px 24px 26px; flex:1; display:flex; flex-direction:column; }
.event-body h3{ font-size:1.15rem; margin-bottom:8px; }
.event-meta{ display:flex; flex-wrap:wrap; gap:12px; font-size:.82rem; color:var(--gray); margin-bottom:12px; }
.event-meta span{ display:flex; align-items:center; gap:6px; }
.event-meta svg{ width:15px; height:15px; color: var(--orange); }
.event-body p{ color: var(--gray); font-size:.92rem; flex:1; }

/* ---------- Article card (crónicas / notas) ---------- */
.article-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow-sm); max-width: 820px; margin: 0 auto;
}
.article-card .article-meta{ color: var(--gray); font-size:.85rem; margin-bottom:22px; display:flex; align-items:center; gap:8px; }
.article-card .article-meta svg{ width:15px; height:15px; color: var(--orange); }
.article-card h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom:18px; }
.article-card h3{ font-size:1.15rem; margin-top:30px; color: var(--orange); }
.article-card p{ color: var(--ink); line-height:1.8; margin-bottom:1.1em; }
.article-card .article-cta{ margin-top:32px; padding-top:28px; border-top:1px solid var(--border); text-align:center; }

/* ---------- Results ---------- */
.results-toolbar{ display:flex; justify-content:center; margin-bottom:34px; }
.results-table-wrap{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  overflow-x:auto; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-sm);
}
table.results-table{ width:100%; min-width:640px; border-collapse: collapse; }
table.results-table th, table.results-table td{
  padding: 14px 18px; text-align:left; font-size:.92rem; border-bottom:1px solid var(--border);
}
table.results-table th{
  background: var(--navy); color:#fff; font-family: var(--ff-head); letter-spacing:.5px; text-transform:uppercase; font-size:.78rem;
}
table.results-table tr:last-child td{ border-bottom:none; }
table.results-table tr:hover td{ background: var(--gray-light); }
.medal{ display:inline-flex; align-items:center; gap:6px; font-weight:700; }
.medal.gold{ color:#b8860b; }
.medal.silver{ color:#7d8592; }
.medal.bronze{ color:#a15c2a; }

/* ---------- Empty state ---------- */
.empty-state{
  text-align:center;
  padding: 70px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--gray-light);
}
.empty-state svg{ width:56px; height:56px; color: var(--orange); margin-bottom:18px; }
.empty-state h3{ margin-bottom:10px; }
.empty-state p{ color: var(--gray); max-width:440px; margin:0 auto 22px; }

/* ---------- Video ---------- */
.video-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:50px; align-items:center; }
.video-wrap{
  position:relative; width:100%; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow);
}
.video-wrap iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }

/* ---------- Gallery ---------- */
.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
.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 .35s ease; }
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-caption{
  position:absolute; inset:auto 0 0 0;
  background: linear-gradient(to top, rgba(15,18,48,.85), transparent);
  color:#fff; padding: 26px 14px 12px; font-size:.8rem;
  opacity:0; transition: opacity .25s ease;
}
.gallery-item:hover .gallery-caption{ opacity:1; }
.gallery-placeholder{
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  background: linear-gradient(160deg, var(--navy-2), var(--blue));
  color: rgba(255,255,255,.85); text-align:center; padding:14px;
}
.gallery-placeholder svg{ width:30px; height:30px; }
.gallery-placeholder span{ font-size:.75rem; }

.lightbox{
  position:fixed; inset:0; background: rgba(10,11,30,.92);
  display:none; align-items:center; justify-content:center; z-index:2000; padding: 30px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width: 90vw; max-height: 82vh; border-radius: 10px; }
.lightbox-close{
  position:absolute; top:24px; right:28px;
  width:44px; height:44px; border-radius:50%;
  background: rgba(255,255,255,.12); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-close svg{ width:22px; height:22px; }

/* ---------- Sponsors ---------- */
.sponsors-grid{
  display:grid; grid-template-columns: repeat(6, 1fr); gap:18px;
}
.institutions-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.sponsor-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  padding: 18px; height:110px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sponsor-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.sponsor-card img{ max-height: 74px; max-width:100%; object-fit:contain; }
.sponsors-note{ text-align:center; color: var(--gray); font-size:.88rem; margin-top:22px; }

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  color:#fff; text-align:center; padding: 64px 0;
}
.cta-band h2{ color:#fff; margin-bottom:14px; }
.cta-band p{ color: rgba(255,255,255,.9); max-width:560px; margin: 0 auto 26px; }
.cta-band .btn-outline-light{ }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:start; }
.contact-cards{ display:grid; gap:16px; margin-bottom:26px; }
.contact-card{
  display:flex; gap:14px; align-items:flex-start;
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px;
}
.contact-card .card-icon{ margin-bottom:0; flex-shrink:0; }
.contact-card h4{ margin:0 0 4px; font-family: var(--ff-head); font-size:1rem; text-transform:none; }
.contact-card p{ margin:0; color: var(--gray); font-size:.92rem; }
.contact-form{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-size:.82rem; font-weight:600; color: var(--navy); margin-bottom:6px; text-transform:uppercase; letter-spacing:.5px; }
.form-row input, .form-row textarea, .form-row select{
  width:100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-family: inherit; font-size: .95rem;
  background: var(--gray-light);
}
.form-row input:focus, .form-row textarea:focus{ outline: 2px solid var(--orange); background:#fff; }
.map-wrap{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); margin-top:26px; }
.map-wrap iframe{ width:100%; height:320px; border:0; display:block; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-3); color: rgba(255,255,255,.75); }
.footer-top{ padding: 64px 0 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:40px; }
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.footer-brand img{ height:48px; border-radius:8px; }
.footer-brand strong{ font-family: var(--ff-head); color:#fff; font-size:1.1rem; letter-spacing:.5px; }
.footer-col h4{ color:#fff; font-size:.9rem; letter-spacing:1px; margin-bottom:18px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a:hover{ color: var(--orange-2); }
.footer-col p{ font-size:.88rem; }
.footer-contact li{ display:flex; gap:10px; align-items:flex-start; font-size:.88rem; }
.footer-contact svg{ width:16px; height:16px; color: var(--orange-2); flex-shrink:0; margin-top:3px; }
.footer-social{ display:flex; gap:10px; margin-top:16px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%; background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; transition: background .2s ease;
}
.footer-social a:hover{ background: var(--orange); }
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; font-size:.8rem;
}
.footer-bottom .container{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.footer-bottom a{ color: var(--orange-2); }

/* ---------- WhatsApp float + back to top ---------- */
.whatsapp-float{
  position:fixed; right:22px; bottom:22px; z-index:900;
  width:60px; height:60px; border-radius:50%;
  background: var(--whatsapp); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 28px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}
.whatsapp-float svg{ width:30px; height:30px; }
.whatsapp-float:hover{ background: var(--whatsapp-dark); }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 12px 28px rgba(37,211,102,.45); }
  70%{ box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 12px 28px rgba(37,211,102,.45); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 12px 28px rgba(37,211,102,.45); }
}
.back-to-top{
  position:fixed; right:22px; bottom:92px; z-index:900;
  width:44px; height:44px; border-radius:50%;
  background: var(--navy); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}
.back-to-top.show{ opacity:1; visibility:visible; transform:none; }
.back-to-top svg{ width:20px; height:20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; max-width:340px; margin:0 auto; }
  .about-grid{ grid-template-columns: 1fr; }
  .video-grid{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .events-grid{ grid-template-columns: repeat(2,1fr); }
  .sponsors-grid{ grid-template-columns: repeat(3,1fr); }
  .institutions-grid{ grid-template-columns: repeat(3,1fr); }
  .gallery-grid{ grid-template-columns: repeat(3,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .nav-links{
    position:fixed; top:0; right:-100%; height:100vh; width:78%; max-width:320px;
    background:#fff; flex-direction:column; align-items:flex-start;
    padding: 100px 30px 30px; gap:22px; box-shadow: -10px 0 30px rgba(0,0,0,.15);
    transition: right .3s ease; z-index:600;
  }
  .nav-links.open{ right:0; }
  .nav-toggle{ display:flex; }
  .nav-actions .btn-whatsapp span{ display:none; }
  .topbar-info{ gap:12px; }
}
@media (max-width: 680px){
  .section{ padding: 56px 0; }
  .hero{ padding: 60px 0 46px; }
  .hero-visual{ max-width: 260px; }
  .promo-strip .container{ font-size:.82rem; }
  .grid-4, .grid-3, .grid-2, .grid-vals, .events-grid{ grid-template-columns: 1fr; }
  .sponsors-grid{ grid-template-columns: repeat(2,1fr); }
  .institutions-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr; }
  .about-values{ grid-template-columns: 1fr; }
  table.results-table{ font-size:.82rem; }
  .whatsapp-float{ width:54px; height:54px; right:16px; bottom:16px; }
  .back-to-top{ right:16px; bottom:80px; }
}
@media (max-width: 420px){
  .container{ padding: 0 16px; }
  .nav-brand img{ height:42px; }
  .nav-brand-text strong{ font-size:.92rem; }
  .nav-brand-text span{ font-size:.65rem; }
  .topbar-info span{ font-size:.78rem; }
  .hero-visual{ max-width: 210px; }
  .card{ padding: 24px 20px; }
}
