/*
Theme Name: Velero Taipan 2
Author: Creasis
Version: 4.0
Description: Tema premium para Velero Taipan (ES/EN/FR) con acordeones y carrusel.
*/

:root{
  --navy:#06172D;
  --navy2:#09274D;
  --steel:#0D335A;
  --gold:#877352;
  --gold2:#BAA57E;
  --ivory:#D5C8A4;
  --shadow:#02060F;

  --text:#EAF1FF;
  --muted:rgba(234,241,255,.72);
  --muted2:rgba(234,241,255,.55);
  --glass:rgba(255,255,255,.06);
  --glass2:rgba(255,255,255,.09);
  --border:rgba(255,255,255,.10);

  --radius:18px;
  --radius2:26px;
  --max:1120px;

  --serif:"Cinzel", serif;
  --sans:"Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Base */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 15% 10%, rgba(186,165,126,.18), transparent 55%),
    radial-gradient(900px 600px at 85% 18%, rgba(13,51,90,.25), transparent 60%),
    linear-gradient(180deg, #030A14 0%, #06172D 40%, #02060F 100%);
  min-height:100vh;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(var(--max), calc(100% - 48px));margin-inline:auto}

/* Subtle grain */
body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
  opacity:.25;
}

/* FIX del bug: NUNCA ocultar contenido por defecto */
[data-animate]{opacity:1; transform:none}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(2,6,15,.55);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header.is-scrolled{
  background:rgba(2,6,15,.78);
  border-bottom-color:rgba(255,255,255,.12);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:12px}
.brand-logo{
  width:34px;height:34px;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(186,165,126,.20), rgba(13,51,90,.20));
  border:1px solid rgba(255,255,255,.10);
  display:grid; place-items:center;
  overflow:hidden;
}
.brand-logo img{width:100%; height:100%; object-fit:cover}
.brand-title{
  font-family:var(--serif);
  letter-spacing:.18em;
  font-weight:700;
}
.nav{
  display:flex; gap:22px;
  font-weight:600;
  color:rgba(234,241,255,.82);
}
.nav a{opacity:.9}
.nav a:hover{opacity:1}
.header-actions{display:flex; align-items:center; gap:14px}

.lang-switch{
  display:flex; gap:6px;
  padding:6px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.05);
}
.lang-switch a{
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  padding:8px 10px;
  border-radius:999px;
  color:rgba(234,241,255,.75);
}
.lang-switch a.is-active{
  background:rgba(186,165,126,.22);
  color:rgba(255,255,255,.95);
  border:1px solid rgba(186,165,126,.45);
}

.hamburger{
  width:44px;height:44px;border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  display:grid; place-items:center;
  cursor:pointer;
}
.hamburger span{
  display:block;width:18px;height:2px;
  background:rgba(234,241,255,.9);
  border-radius:999px;
  margin:2px 0;
}
.desktop-only{display:none}
@media(min-width:920px){
  .desktop-only{display:flex}
  .hamburger{display:none}
}

/* Mobile menu */
.mobile-menu-overlay{
  position:fixed; inset:0;
  z-index:80;
  background:rgba(2,6,15,.92);
  backdrop-filter: blur(14px);
  display:none;
  padding:86px 22px 22px;
}
.mobile-menu-overlay.is-open{display:block}
.mobile-menu-overlay .mobile-link{
  display:block;
  padding:16px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  margin-bottom:10px;
  font-weight:700;
}
.mobile-lang{margin-top:14px; margin-bottom:16px}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.95);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor:pointer;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18)}
.btn-primary{
  background:linear-gradient(135deg, rgba(186,165,126,.26), rgba(13,51,90,.22));
  border-color:rgba(186,165,126,.40);
}
.btn-ghost{background:transparent}
.btn-lg{padding:14px 18px; font-size:14px}

/* Hero */
.hero{
  position:relative;
  padding:44px 0 26px;
}
.hero-card{
  position:relative;
  border-radius:var(--radius2);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(1200px 420px at 22% 15%, rgba(186,165,126,.24), transparent 55%),
    radial-gradient(900px 520px at 80% 10%, rgba(13,51,90,.35), transparent 55%),
    rgba(255,255,255,.04);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.hero-media{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(2,6,15,.55), rgba(2,6,15,.92)),
    url("assets/img/hero.jpg");
  background-size:cover;
  background-position:center;
  filter:saturate(1.05);
}
.hero-content{
  position:relative;
  padding:46px 22px 24px;
}
@media(min-width:920px){
  .hero-content{padding:64px 56px 40px}
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(234,241,255,.78);
}
.kicker:before{
  content:"";
  width:26px;height:1px;background:rgba(186,165,126,.75);
}
.h1{
  margin:14px 0 10px;
  font-family:var(--serif);
  font-weight:700;
  line-height:1.04;
  letter-spacing:.02em;
  font-size:42px;
}
@media(min-width:920px){ .h1{font-size:64px} }
.subhead{
  margin:0 0 18px;
  color:rgba(234,241,255,.78);
  font-size:15px;
  line-height:1.6;
  max-width:60ch;
}
.hero-cta{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px}
.chips{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px}
.chip{
  display:inline-flex; align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:rgba(234,241,255,.78);
  font-size:12px;
  font-weight:700;
}

/* Sections */
.section{padding:34px 0}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px;
  margin-bottom:18px;
}
.h2{
  margin:0;
  font-family:var(--serif);
  font-size:30px;
  letter-spacing:.01em;
}
.section-desc{margin:0;color:var(--muted); max-width:70ch; line-height:1.6}

.grid{
  display:grid;
  gap:14px;
}
@media(min-width:920px){
  .grid.cols-3{grid-template-columns:repeat(3,1fr)}
  .grid.cols-2{grid-template-columns:repeat(2,1fr)}
  .grid.cols-4{grid-template-columns:repeat(4,1fr)}
}

.card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}
.card .title{margin:0 0 8px; font-weight:800}
.card .p{margin:0; color:var(--muted); line-height:1.6}

/* Carousel */
.carousel{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  border-radius:var(--radius2);
  overflow:hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.carousel-viewport{
  overflow:hidden;
  position:relative;
}
.carousel-track{
  display:flex;
  gap:16px;
  padding:18px;
  align-items:stretch;
  width:max-content;
  will-change:transform;
}
.carousel-item{
  width: min(360px, 74vw);
  aspect-ratio: 16/10;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  flex:0 0 auto;
}
.carousel-item img{
  width:100%; height:100%; object-fit:cover;
  transform:scale(1.02);
}

/* Tours accordions */
.tours{
  display:grid;
  gap:12px;
}
.tour{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  border-radius:var(--radius);
  overflow:hidden;
}
.tour summary{
  list-style:none;
  cursor:pointer;
  padding:16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.tour summary::-webkit-details-marker{display:none}
.tour-top{
  display:flex; flex-direction:column; gap:6px;
}
.tour-name{
  font-weight:900;
  letter-spacing:.01em;
}
.tour-meta{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.badge{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:rgba(234,241,255,.78);
}
.tour-toggle{
  width:40px;height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  display:grid; place-items:center;
  background:rgba(255,255,255,.04);
  color:rgba(234,241,255,.9);
  flex:0 0 auto;
}
details[open] .tour-toggle{transform:rotate(45deg)}
.tour-body{
  padding:0 16px 16px;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(234,241,255,.82);
}
.tour-cols{
  display:grid; gap:14px; margin-top:14px;
}
@media(min-width:920px){ .tour-cols{grid-template-columns:1.1fr .9fr} }
.tour-body h4{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(234,241,255,.78);
}
.ul{
  margin:0;
  padding-left:18px;
  color:rgba(234,241,255,.75);
  line-height:1.65;
}
.note{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.tour-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}

/* Footer */
.site-footer{
  margin-top:36px;
  border-top:1px solid rgba(255,255,255,.10);
  background:rgba(2,6,15,.55);
}
.footer-inner{
  padding:26px 0;
  display:flex;
  flex-direction:column;
  gap:12px;
  color:rgba(234,241,255,.72);
}
.footer-links{display:flex; flex-wrap:wrap; gap:14px; font-weight:700; color:rgba(234,241,255,.80)}

/* WhatsApp floating */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:90;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(16,185,129,.22), rgba(2,6,15,.45));
  border:1px solid rgba(16,185,129,.40);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  font-weight:900;
}
.wa-dot{
  width:10px;height:10px;border-radius:50%;
  background:#10b981;
  box-shadow:0 0 0 6px rgba(16,185,129,.18);
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0;
  z-index:100;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(2,6,15,.92);
  padding:20px;
}
.lightbox.is-open{display:flex}
.lightbox img{
  width:min(1100px, 96vw);
  height:auto;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
}
.lightbox .close{
  position:absolute;
  top:18px; right:18px;
  width:44px;height:44px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  display:grid; place-items:center;
  cursor:pointer;
  font-weight:900;
}

/* Logo box (header) */
.brand-logo{
  width:42px;
  height:42px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.brand-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:6px;
}

/* HERO: 2 columnas (texto + logo grande) */
.hero-grid{
  display:grid;
  gap:22px;
  align-items:center;
}

@media (min-width: 920px){
  .hero-grid{
    grid-template-columns: 1.15fr .85fr;
    gap:34px;
  }
}

.hero-right{
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-logo{
  width:min(420px, 48vw);
  max-width:520px;
  height:auto;
  opacity:.95;
  filter:
    drop-shadow(0 18px 60px rgba(0,0,0,.55))
    drop-shadow(0 0 26px rgba(186,165,126,.22));
  transform: translateY(-4px);
}

/* En móvil que no estorbe: lo hacemos más pequeño */
@media (max-width: 919px){
  .hero-right{ justify-content:flex-start; }
  .hero-logo{ width:min(260px, 62vw); transform:none; opacity:.9; }
}

/* HERO video background */
.hero-card{ position:relative; overflow:hidden; }
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-content{ position:relative; z-index:1; }

.hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(10,25,47,.28); /* 20–30% */
}


/* ===== HERO FIX (Quiet Luxury) ===== */

/* base layering */
.hero-card{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  padding: clamp(16px, 3vw, 28px);
  min-height: clamp(560px, 78vh, 760px);
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-content{ position:relative; z-index:2; }

/* video fill */
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 55%;
  transform: scale(1.02);
}

/* stronger overlay for readability (desktop) */
.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(
    90deg,
    rgba(10,25,47,.80) 0%,
    rgba(10,25,47,.48) 55%,
    rgba(10,25,47,.18) 100%
  );
}

/* layout */
.hero-grid{
  display:grid;
  gap:22px;
  align-items:center;
}
@media (min-width: 920px){
  .hero-grid{ grid-template-columns: 1.15fr .85fr; }
}

/* text “glass” panel so it ALWAYS reads */
.hero-left{
  position:relative;
  color: rgba(255,255,255,.92);
}
.hero-left::before{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius:22px;
  background: rgba(10,25,47,.40);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.hero-left > *{ position:relative; z-index:1; }

/* typography tweaks inside hero only */
.hero .kicker{
  color: rgba(255,255,255,.72);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
}
.hero .h1{
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.02;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
}
.hero .subhead{
  color: rgba(255,255,255,.78);
  max-width: 52ch;
}

/* big logo right sizing (desktop) */
.hero-logo{
  width: clamp(180px, 26vw, 360px);
  height:auto;
  opacity:.92;
  filter: drop-shadow(0 18px 50px rgba(0,0,0,.55));
}

/* MOBILE: no logo grande, overlay vertical, y más aire */
@media (max-width: 720px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-card{ min-height: 82vh; padding: 14px; }

  .hero-overlay{
    background: linear-gradient(
      180deg,
      rgba(10,25,47,.74) 0%,
      rgba(10,25,47,.52) 55%,
      rgba(10,25,47,.30) 100%
    );
  }

  .hero-right{ display:none !important; } /* esto evita que se corte y tape */
  .hero-left::before{ inset:-10px; background: rgba(10,25,47,.48); }

  .hero .subhead{ font-size:14px; line-height:1.65; }
}

/* =========================
   PRELOADER — Quiet Luxury
   ========================= */
.preloader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background: radial-gradient(1200px 700px at 50% 20%, rgba(255,255,255,.06), rgba(255,255,255,0) 60%),
              linear-gradient(180deg, #061225 0%, #0A192F 100%);
  transition: opacity .45s ease, visibility .45s ease;
  opacity:1;
  visibility:visible;
}

.preloader.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.preloader__card{
  width:min(420px, calc(100% - 44px));
  border-radius:22px;
  padding:22px 20px;
  text-align:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.preloader__logo{
  width:74px;
  height:74px;
  object-fit:contain;
  margin:0 auto 10px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
  opacity:.98;
}

.preloader__title{
  font-family: var(--serif, "Cinzel", serif);
  letter-spacing:.22em;
  font-weight:700;
  color: rgba(255,255,255,.92);
  font-size:14px;
  margin-bottom:14px;
}

.preloader__bar{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.preloader__bar span{
  display:block;
  height:100%;
  width:40%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(200,181,154,.0), rgba(200,181,154,.85), rgba(200,181,154,.0));
  animation: taipanPreload 1.1s ease-in-out infinite;
}

@keyframes taipanPreload{
  0%{ transform: translateX(-120%); opacity:.6; }
  50%{ opacity:1; }
  100%{ transform: translateX(260%); opacity:.6; }
}

.preloader__hint{
  margin-top:12px;
  font-size:12px;
  letter-spacing:.06em;
  color: rgba(255,255,255,.70);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .preloader__bar span{ animation:none; }
  .preloader{ transition:none; }
}