:root {
  --color-bg: #0B1425;
  --color-bg-soft: #0f182b;
  --color-accent: #C5E11A;
  --color-white: #ffffff;

  --font-title: "Playfair Display", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-white);
  line-height: 1.45;
}

/* Ayuda para anclas con header sticky */
section { scroll-margin-top: 110px; }

/* Top Bar */
.top-bar { background:#000; padding:6px 0; font-size:13px; }
.top-container { max-width:1200px; margin:auto; padding:0 20px; }

/* Header */
.main-header {
  background-color: var(--color-accent);
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  position: sticky; top: 0; z-index: 999;
}
.main-header .container {
  max-width:1200px; margin:auto; padding:0 20px;
  display:flex; justify-content:space-between; align-items:center;
}

/* Logo dentro de círculo negro (120px) */
.logo img{
  height:120px; width:120px; border-radius:50%;
  background:#000; padding:8px; object-fit:contain;
  box-shadow:0 0 8px rgba(0,0,0,.25);
}

/* Menú */
.menu{ position:relative; }
#menu-toggle{ display:none; }
.menu-icon{ display:none; font-size:26px; color:var(--color-bg); cursor:pointer; }
.menu-items{ display:flex; gap:25px; list-style:none; align-items:center; }
.menu-items li a{
  color:var(--color-bg); font-weight:600; text-decoration:none; font-size:16px;
  position:relative; padding-bottom:3px; transition:color .2s;
}
.menu-items li a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:var(--color-bg); transition:width .3s;
}
.menu-items li a:hover::after{ width:100%; }
.menu-items li a:hover{ color:#000; }

/* HERO */
.hero{ position:relative; height:500px; overflow:hidden; }
.hero-bg{ width:100%; height:100%; object-fit:cover; filter:brightness(.55); }
.hero-content{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:20px;
}
.card{
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color:#fff; border-radius:16px; padding:40px 30px; max-width:620px; text-align:center;
  border:1px solid rgba(255,255,255,.2); box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.hero-title{ font-family: var(--font-title); font-size:2.5rem; letter-spacing:.2px; }
.hero-title span{ color:var(--color-accent); }
.card p{ font-size:1.05rem; margin:14px 0 20px; }
.buttons{ display:flex; gap:15px; justify-content:center; flex-wrap:wrap; }
.btn{
  background:var(--color-accent); color:#000; padding:12px 20px; border-radius:8px;
  text-decoration:none; font-weight:700; transition:background .25s;
}
.btn:hover{ background:#b4cd17; }
.btn.secondary{ background:transparent; color:var(--color-accent); border:2px solid var(--color-accent); }
.btn.secondary:hover{ background:var(--color-accent); color:#000; }

/* ===== TITULOS DE SECCION (elegantes + centrados) ===== */
.section { padding:60px 20px; text-align:center; }
.section .content { max-width:1200px; margin:0 auto; }
.section-title{
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: .3px;
  text-align: center;
  margin: 0 auto 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.section-title strong{ color: var(--color-accent); }
.decor-pill{
  width: 10px; height: 10px; border-radius: 999px; background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(197,225,26,.18);
}
.decor-line{
  width: 120px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(197,225,26,1) 0%, rgba(197,225,26,0) 100%);
}

/* ===== WHY SECTION (oscura integrada) ===== */
.why-section{ background: var(--color-bg); padding: 60px 20px; }
.why-container{ max-width:1200px; margin:0 auto; }
.section-head{ display:flex; justify-content:center; margin-bottom:6px; }

.why-controls{ display:flex; justify-content:center; gap:12px; margin:6px 0 22px; }
.why-arrow{
  width:44px; height:44px; border-radius:50%;
  background: transparent; color: var(--color-accent);
  border: 2px solid var(--color-accent);
  display:grid; place-items:center; cursor:pointer; transition:.25s ease;
}
.why-arrow .icon{ font-size:22px; line-height:1; }
.why-arrow:hover{ background:var(--color-accent); color:#0B1425; }
.why-arrow:disabled{ opacity:.4; cursor:not-allowed; }

.why-slider{ overflow:hidden; }
.why-track{
  display:grid; grid-auto-flow:column; gap:1rem;
  transition: transform .45s ease; will-change: transform;
  /* grid-auto-columns se asigna con JS para 3/2/1 por vista */
}

.why-card{
  background: var(--color-bg-soft);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
}
.why-icon{
  width:38px; height:38px; border-radius:50%; background:var(--color-accent);
  display:grid; place-items:center; color:#0B1425; font-weight:900; margin-bottom:14px;
  box-shadow:0 2px 8px rgba(197,225,26,.45);
}
.why-card h3{ margin:0 0 8px; font-size:18px; font-family: var(--font-title); color:#f2f2f2; }
.why-card p{ margin:0; color:#cbd2e1; line-height:1.6; }

.why-dots{ display:flex; justify-content:center; gap:8px; margin-top:10px; }
.dot{ width:10px; height:10px; border-radius:50%; background:rgba(197,225,26,.35); border:0; cursor:pointer; transition:transform .2s, background .2s; }
.dot:hover{ transform:scale(1.15); }
.dot.is-active{ background:var(--color-accent); }

/* ===== QUIÉNES SOMOS ===== */
.quienes-section .content{ max-width:1200px; }
.club-grid{
  display:grid; grid-template-columns: 1.2fr 1.4fr; gap:24px; align-items:stretch;
}
.club-media{
  background: var(--color-bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; overflow: hidden;
}
.club-media img{
  display:block; width:100%; height:100%; max-height:420px; object-fit:cover;
}
.club-media figcaption{
  font-size:.9rem; color:#cbd2e1; padding:10px 14px; border-top:1px solid rgba(255,255,255,.06);
}
.club-text{
  background: var(--color-bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 20px;
  display:grid; gap:16px; text-align:left;
}
.club-block h3{
  font-family: var(--font-title); color: var(--color-accent);
  margin: 0 0 6px; display:flex; align-items:center; gap:8px;
}
.club-block p{ color:#e6e6e6; line-height:1.7; }
.club-values{
  list-style:none; padding:0; margin:0;
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px 14px;
}
.club-values li{ color:#e6e6e6; }
.club-values i{ color: var(--color-accent); margin-right:8px; }

/* ===== UBICACIÓN ===== */
.section-ubicacion .content{ max-width:1200px; margin:0 auto; text-align:left; }
.ubicacion-card{
  display:grid; grid-template-columns: 1.1fr 1.4fr; gap:22px;
  background:var(--color-bg-soft); border:1px solid rgba(255,255,255,.08); border-radius:14px;
  padding:20px; margin-bottom:20px;
}
.ubicacion-title{ font-family: var(--font-title); color:var(--color-accent); font-size:1.6rem; margin:0 0 8px; }
.address{ line-height:1.7; color:#e6e6e6; }
.ubicacion-map .map-box{
  border-radius:12px; overflow:hidden; border:2px solid var(--color-accent);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.ubicacion-map iframe{ width:100%; height:260px; border:0; }

/* ===== GALERÍA PAGINADA ===== */
.gallery-section .content{ max-width:1200px; margin:auto; }
.gallery-pagination{ display:flex; justify-content:center; gap:10px; margin:10px 0 25px; }
.page-link{
  background:transparent; color:var(--color-accent); border:2px solid var(--color-accent);
  padding:8px 14px; border-radius:999px; font-weight:700; cursor:pointer; user-select:none; transition:.25s;
}
.page-link:hover{ background:var(--color-accent); color:#000; }

#g1,#g2,#g3{ position:absolute; left:-9999px; }
.gallery-pages{ position:relative; }
.gallery-page{ display:none; }
#g1:checked ~ .gallery-pages #page1{ display:block; }
#g2:checked ~ .gallery-pages #page2{ display:block; }
#g3:checked ~ .gallery-pages #page3{ display:block; }

/* botón activo */
#g1:checked ~ .gallery-pagination label[for="g1"],
#g2:checked ~ .gallery-pagination label[for="g2"],
#g3:checked ~ .gallery-pagination label[for="g3"]{
  background: var(--color-accent);
  color: #0B1425;
  box-shadow: 0 4px 12px rgba(197,225,26,.45);
}

/* Grid 4x3 */
.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:15px; }
.gallery-grid img{
  width:100%; height:200px; object-fit:cover; border-radius:10px; border:3px solid var(--color-accent);
  transition: transform .2s ease;
}
.gallery-grid img:hover{ transform: translateY(-2px) scale(1.01); cursor: zoom-in; }

/* ===== LIGHTBOX ===== */
.lightbox{
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  display: none; align-items: center; justify-content: center; z-index: 2000;
}
.lightbox.is-open{ display: flex; }
.lb-img{
  max-width: 92vw; max-height: 84vh; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); border: 3px solid var(--color-accent);
}
.lb-close{
  position: absolute; top: 20px; right: 24px; font-size: 34px; line-height: 1;
  background: transparent; color: #fff; border: 0; cursor: pointer;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.lb-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.4);
  display: grid; place-items: center; cursor: pointer; transition: .2s;
}
.lb-prev{ left: 24px; }
.lb-next{ right: 24px; }
.lb-arrow:hover{ background: var(--color-accent); color:#0B1425; border-color: var(--color-accent); }

/* ===== CONTACTO ===== */
.section-contacto{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); }
.contact-title-top{ margin-bottom: 26px; }
.contact-grid{
  display:grid; grid-template-columns: 1.1fr 1.2fr; gap:24px; align-items:start;
}
.contact-info{
  background: var(--color-bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 20px; text-align:left;
}
.contact-lead{ color:#cbd2e1; margin: 8px 0 14px; }
.phones{ list-style:none; padding:0; margin: 6px 0 14px; color:#e6e6e6; }
.phones li{ margin: 6px 0; }
.phones i{ color: var(--color-accent); margin-right: 8px; }

.contact-social{ display:flex; gap:12px; margin-top: 6px; }
.contact-social a{ color: var(--color-accent); font-size:20px; transition: transform .2s; }
.contact-social a:hover{ transform: scale(1.15); }

.contact-form{
  background: var(--color-bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 20px; text-align: left;
}
.field{ margin-bottom: 14px; }
.field.two{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
label{ display:block; font-size: .9rem; color:#cbd2e1; margin-bottom:6px; }
input, textarea{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background:#0c1424; color:#fff; outline:none; transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder{ color:#99a2b3; }
input:focus, textarea:focus{ border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(197,225,26,.18); }
.btn-full{ width:100%; }

/* FOOTER */
.footer{
  background:#1c1c1c; color:var(--color-white); padding:20px 0; font-size:14px;
  border-top:1px solid #444; position:relative;
}
.footer-container{
  max-width:1200px; margin:auto; padding:0 20px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
}
.footer .right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.footer .right a{ color:var(--color-white); text-decoration:none; transition:color .3s; }
.footer .right a:hover{ color:var(--color-accent); }
.footer .divider{ color:#888; }
.social-icons{ display:flex; gap:10px; margin-left:10px; }
.social-icons a{ color:var(--color-accent); font-size:18px; transition:transform .3s; }
.social-icons a:hover{ transform:scale(1.2); }

/* Botón arriba */
.back-to-top{
  display:none;
  position:absolute; right:20px; top:-20px; background:var(--color-accent); color:#000;
  text-decoration:none; font-size:18px; font-weight:700; padding:8px 12px; border-radius:4px;
  transition:background .3s;
}
.back-to-top:hover{ background:#b4cd17; }

/* ======= RESPONSIVE ======= */
@media (max-width: 1100px){
  .club-values{ grid-template-columns: 1fr; }
}
@media (max-width: 992px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
  .ubicacion-card{ grid-template-columns: 1fr; }
  .ubicacion-map iframe{ height:220px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .club-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
  .menu-icon{ display:block; }
  .menu-items{
    display:none; position:absolute; right:0; top:100%; width:220px; padding:15px;
    background:var(--color-accent); border-radius:0 0 8px 8px;
    box-shadow:0 8px 20px rgba(0,0,0,.15); flex-direction:column; gap:10px;
  }
  #menu-toggle:checked + .menu-icon + .menu-items{ display:flex; }

  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .gallery-grid{ grid-template-columns: 1fr; }
  .field.two{ grid-template-columns: 1fr; }
}
