/* ============================================================
   Water Sports Diego — style.css
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --cyan:         #00c8e0;
  --gold:         #f5a800;
  --navy:         #0a1628;
  --navy2:        #0d1f3c;
  --white:        #f0f8ff;
  --glass:        rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.15);
  --green:        #25d366;
}

/* ── RESET ── */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%;
  background: linear-gradient(to right, #ffffff 0%, #ffffff 18%, #1a2e50 45%, #0a1628 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.nav-logo img {
  height: 52px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.12));
}
.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; color: var(--navy); display: none;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
nav ul { list-style:none; display:flex; gap:28px; }
nav ul a {
  text-decoration: none; color: var(--white);
  font-size: .88rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 500;
  transition: color .2s;
}
nav ul a:hover { color: var(--cyan); }
.lang-btn {
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--white); padding: 6px 16px; border-radius: 20px;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  font-size: .82rem; letter-spacing: .06em; transition: background .2s;
}
.lang-btn:hover { background: rgba(0,200,224,0.2); }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; }
.hamburger span { width:24px; height:2px; background:var(--white); border-radius:2px; display:block; }

/* ============================================================
   HERO — VIDEO DE FONDO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Video */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* En móvil: si el video no autoplay, se ve la imagen poster */
@media (max-width: 768px) {
  .hero-video {
    /* Forzar que ocupe todo aunque no cargue */
    min-width: 100%;
    min-height: 100%;
  }
}

/* Imagen fallback (visible cuando el video no carga en móvil) */
.hero-img-fallback {
  position: absolute; inset: 0;
  background-image: url('img/padleboardamanecer.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  display: none;
}
.hero-img-fallback.visible { display: block; }

/* Overlay oscuro sobre el video */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.35) 0%,
    rgba(10,22,40,0.65) 100%
  );
  z-index: 1;
}

/* Contenido encima del video */
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
  animation: fadeUp .9s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}

.hero-eyebrow {
  font-size: .8rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: .95;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero-title span { color: var(--cyan); }
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  margin: 18px auto 32px;
  color: rgba(240,248,255,.9);
  font-weight: 300; max-width: 540px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .7rem; letter-spacing: .15em;
  color: rgba(255,255,255,.6); text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:.3; }
  50%      { opacity:1; }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primary {
  background: var(--gold); color: var(--navy); border: none;
  padding: 14px 34px; border-radius: 4px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .95rem;
  cursor: pointer; letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,168,0,.4); }
.btn-primary.btn-block { width:100%; padding:14px; font-size:.95rem; border-radius:8px; text-align:center; }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
  padding: 14px 34px; border-radius: 4px;
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .95rem;
  cursor: pointer; letter-spacing: .04em;
  transition: border-color .2s, background .2s;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--cyan); background: rgba(0,200,224,.1); }

/* ============================================================
   SECCIONES BASE
   ============================================================ */
section { padding: 90px 5%; }
.section-label {
  font-size: .75rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1; margin-bottom: 14px;
}
.section-title span { color: var(--gold); }
.section-desc {
  color: rgba(240,248,255,.65);
  max-width: 560px; line-height: 1.7; font-size: .95rem; font-weight: 300;
}

/* ============================================================
   ACTIVIDADES
   ============================================================ */
#activities { background: var(--navy2); }
.activities-header { margin-bottom: 50px; }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.activity-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.activity-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.act-img-wrap { overflow: hidden; height: 200px; background: #1a2a4a; }
.act-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s;
}
.activity-card:hover .act-img { transform: scale(1.05); }
.activity-body { padding: 20px; }
.activity-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.55rem; letter-spacing: .04em; }
.activity-desc {
  font-size: .83rem; color: rgba(240,248,255,.6);
  margin: 6px 0 14px; line-height: 1.6; font-weight: 300;
}
.activity-price { font-size: 1.05rem; font-weight: 600; color: var(--gold); }
.book-btn {
  display: block; width: 100%; margin-top: 14px;
  background: var(--cyan); color: var(--navy); border: none;
  padding: 11px; border-radius: 6px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .88rem;
  cursor: pointer; letter-spacing: .04em;
  transition: background .2s, transform .15s;
}
.book-btn:hover { background: #00afc4; transform: scale(1.02); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.78); backdrop-filter: blur(7px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--navy2); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 36px;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .32s ease;
}
@keyframes modalIn {
  from { opacity:0; transform:scale(.93) translateY(18px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.step-bar { display:flex; gap:8px; margin-bottom:26px; }
.step-dot {
  flex:1; height:3px; border-radius:2px;
  background: rgba(255,255,255,.12); transition: background .3s;
}
.step-dot.active { background: var(--cyan); }
.step-dot.done   { background: var(--gold); }
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px;
}
.modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.1rem; line-height: 1; }
.modal-price { font-size: 1.1rem; font-weight: 600; color: var(--gold); margin-top: 4px; }
.modal-secure { font-size: .82rem; color: rgba(240,248,255,.5); margin-top: 3px; }
.modal-close {
  background: none; border: none; color: rgba(240,248,255,.5);
  font-size: 1.5rem; cursor: pointer; padding: 4px; transition: color .2s;
}
.modal-close:hover { color: var(--white); }

/* Formulario */
.form-group { margin-bottom: 15px; }
.form-group label {
  display: block; font-size: .74rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border); border-radius: 8px;
  padding: 11px 14px; color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: .92rem;
  outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group select option { background: var(--navy2); color: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Resumen */
.summary-box {
  background: rgba(0,200,224,.07); border: 1px solid rgba(0,200,224,.18);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 18px;
}
.summary-row { display:flex; justify-content:space-between; font-size:.88rem; padding:5px 0; }
.summary-label { color: rgba(240,248,255,.55); }
.summary-value { font-weight: 500; }
.summary-total { border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; padding-top: 10px; }
.summary-total .summary-value { color: var(--gold); font-size: 1.1rem; font-weight: 700; }

/* Errores */
.form-error {
  background: rgba(255,80,80,.12); border: 1px solid rgba(255,80,80,.3);
  border-radius: 8px; padding: 12px 16px;
  font-size: .85rem; color: #ff9090;
  margin-bottom: 14px; display: none;
}
.form-error.visible { display: block; }

/* Botón pago */
.pay-btn {
  width: 100%; padding: 15px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #e09700);
  color: var(--navy);
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pay-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,168,0,.45); }
.pay-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.pay-btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(10,22,40,.3); border-top-color: var(--navy);
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.pay-btn.loading .spinner  { display: block; }
.pay-btn.loading .btn-text { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

.cancel-link {
  display: block; text-align: center; margin-top: 12px;
  font-size: .82rem; color: rgba(240,248,255,.45);
  cursor: pointer; transition: color .2s;
}
.cancel-link:hover { color: var(--cyan); }

/* ============================================================
   GALERÍA
   ============================================================ */
#gallery { background: var(--navy); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 40px;
}
.gallery-item { overflow: hidden; border-radius: 10px; cursor: pointer; position: relative; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease; min-height: 180px;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.5), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

/* ============================================================
   CONTACTO
   ============================================================ */
#contact { background: var(--navy2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start; margin-top: 40px;
}
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-top: 28px; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0,200,224,.12); border: 1px solid rgba(0,200,224,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item h4 {
  font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 4px;
}
.contact-item p,
.contact-item a { font-size: .95rem; color: rgba(240,248,255,.8); text-decoration: none; }
.contact-item a:hover { color: var(--gold); }
.whatsapp-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; margin-top: 30px;
  transition: background .2s, transform .2s;
}
.whatsapp-cta:hover { background: #1ebe59; transform: translateY(-2px); }
.contact-form-box {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 36px;
}
.contact-form-box h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; margin-bottom: 20px;
}
.btn-wa-contact {
  width: 100%; padding: 13px; border: none; border-radius: 8px;
  background: var(--green); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .95rem;
  cursor: pointer; margin-top: 4px; transition: background .2s;
}
.btn-wa-contact:hover { background: #1ebe59; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #060e1c; padding: 40px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  border-top: 1px solid var(--glass-border);
}
footer img { height: 44px; filter: brightness(.85); }
footer p   { font-size: .8rem; color: rgba(240,248,255,.35); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .8rem; color: rgba(240,248,255,.4); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  text-decoration: none; font-size: 1.5rem;
  animation: waPulse 2.5s ease-in-out infinite;
}
@keyframes waPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 40px rgba(37,211,102,.8); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,22,40,.98);
    padding: 20px 5%; gap: 16px;
  }
  .hamburger    { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 600px) {
  section   { padding: 70px 5%; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .modal    { padding: 24px 20px; }
  /* En móvil el video igual ocupa todo */
  .hero-video { object-position: center; }
}