/* ============================================
   SCUBA ALUX — Sistema de diseño
   Colores marca · Tipografía · Layout global
   ============================================ */

:root {
  /* Paleta */
  --color-bg: #0a0d12;
  --color-bg-deep: #060810;
  --color-surface: #0f131a;
  --color-surface-2: #161b24;
  --color-red: #e30613;
  --color-red-hover: #ff1a2c;
  --color-white: #ffffff;
  --color-text: #e8eaed;
  --color-text-muted: #a8adb5;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-blue-deep: #0a1628;
  --color-overlay: rgba(6, 8, 16, 0.55);

  /* Tipografía */
  --font-display: 'League Spartan', 'Bebas Neue', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* Tamaños */
  --container: 1280px;
  --container-narrow: 980px;

  /* Sombras y efectos */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 8px 28px rgba(227, 6, 19, 0.35);

  /* Transiciones */
  --t-fast: 0.2s ease;
  --t-base: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-white);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: 0; }
h4 { font-size: 1.25rem; letter-spacing: 0; }
p { margin-bottom: 1rem; }

::selection { background: var(--color-red); color: var(--color-white); }

/* ============================================
   LOADER (al cargar la página)
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-bubbles {
  position: relative;
  width: 200px;
  height: 200px;
}
.loader-bubbles::before,
.loader-bubbles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
  border: 1px solid rgba(255,255,255,0.2);
  animation: bubble-rise 2.4s infinite ease-in;
}
.loader-bubbles::before {
  width: 18px; height: 18px;
  left: 30%;
  bottom: 0;
  animation-delay: 0s;
}
.loader-bubbles::after {
  width: 12px; height: 12px;
  left: 60%;
  bottom: 0;
  animation-delay: 0.6s;
}
.loader-bubbles span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
  border: 1px solid rgba(255,255,255,0.2);
  animation: bubble-rise 2.4s infinite ease-in;
}
.loader-bubbles span:nth-child(1) { width: 24px; height: 24px; left: 45%; bottom: 0; animation-delay: 0.3s; }
.loader-bubbles span:nth-child(2) { width: 8px; height: 8px; left: 75%; bottom: 0; animation-delay: 1s; }
.loader-bubbles span:nth-child(3) { width: 14px; height: 14px; left: 15%; bottom: 0; animation-delay: 1.4s; }
@keyframes bubble-rise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-220px) scale(1); opacity: 0; }
}
.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  animation: logo-pulse 2s infinite ease-in-out;
}
@keyframes logo-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   PAGE TRANSITION (entre páginas)
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-blue-deep) 100%);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.page-transition.is-active { transform: translateY(0); }
.page-transition.is-leaving { transform: translateY(-100%); }

body.page-enter .main-content { animation: page-fade-in 0.7s ease forwards; }
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HEADER / NAVBAR — diseño en dos plantas
   ============================================ */
:root {
  --header-h: 130px;
  --header-h-scrolled: 70px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6,8,16,0.92) 0%, rgba(6,8,16,0.65) 100%);
  backdrop-filter: blur(0);
  transition: background var(--t-base), backdrop-filter var(--t-base);
}
.site-header.is-scrolled {
  background: rgba(6, 8, 16, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header-top {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding var(--t-base);
  padding: 14px 0;
}
.header-bottom { padding: 0; }

.site-header.is-scrolled .header-top { padding: 8px 0; border-bottom-color: transparent; }

.header-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.brand img {
  height: 46px;
  transition: height var(--t-base);
}
.site-header.is-scrolled .brand img { height: 36px; }

/* Acciones lado derecho */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-white);
  transition: color var(--t-fast);
}
.header-phone:hover { color: var(--color-red); }
.header-phone svg { color: var(--color-red); }

.header-faq {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.header-faq:hover {
  border-color: var(--color-red);
  background: rgba(227,6,19,0.08);
  color: var(--color-red);
}
.header-faq svg { color: var(--color-red); }

/* Selector de idioma */
.lang-switcher {
  position: relative;
  z-index: 200;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  background: transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.lang-current:hover {
  border-color: var(--color-red);
  background: rgba(227,6,19,0.08);
}
.lang-arrow {
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--t-fast);
}
.lang-switcher:hover .lang-arrow { transform: rotate(-135deg); margin-top: 2px; }
.lang-flag {
  width: 20px;
  height: 20px;
  display: inline-block;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 auto;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(15, 19, 26, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}
.lang-switcher:hover .lang-menu,
.lang-switcher:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  border-radius: 2px;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-menu a:hover { background: rgba(227,6,19,0.1); color: var(--color-red); }
.lang-menu a.is-active { color: var(--color-red); }

/* Navegación principal — fila inferior */
.nav-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: 10px 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-base);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--color-red); }

/* CTA destacado en menu (Contacto) */
.nav-link-cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  background: var(--color-red);
  border-radius: 2px;
  transition: background var(--t-base), transform var(--t-base);
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover { background: var(--color-red-hover); color: var(--color-white) !important; transform: translateY(-1px); }

.nav-toggle-arrow {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  margin-top: -3px;
  transition: transform var(--t-fast);
}
.nav-item.has-submenu:hover .nav-toggle-arrow { transform: rotate(-135deg); margin-top: 3px; }

/* Submenús */
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: rgba(15, 19, 26, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.nav-item:hover > .submenu,
.nav-item:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.submenu li a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0;
  border-radius: 2px;
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
  white-space: nowrap;
}
.submenu li a:hover {
  background: rgba(227, 6, 19, 0.1);
  color: var(--color-red);
  padding-left: 22px;
}

/* Hamburguesa móvil */
.nav-burger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--color-bg-deep);
  z-index: 105;
  padding: calc(var(--header-h) + 24px) 32px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile > ul > li { border-bottom: 1px solid var(--color-border); }
.nav-mobile a, .nav-mobile .mobile-section-title, .nav-mobile .mobile-toggle {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--color-white);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.nav-mobile .mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mobile .toggle-plus {
  color: var(--color-red);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform var(--t-base);
  display: inline-block;
}
.nav-mobile li.is-expanded > .mobile-toggle .toggle-plus {
  transform: rotate(45deg);
}
.nav-mobile .submenu-mobile {
  overflow: hidden;
}
.nav-mobile .submenu-mobile a {
  font-size: 1rem;
  font-weight: 400;
  padding: 10px 0 10px 18px;
  color: var(--color-text);
  text-transform: none;
}
.nav-mobile .submenu-mobile a:hover { color: var(--color-red); }
.nav-mobile .submenu-mobile {
  padding-left: 16px;
  padding-bottom: 12px;
}
.nav-mobile .submenu-mobile a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  color: var(--color-text-muted);
  padding: 10px 0;
}
.nav-mobile .submenu-mobile a:hover { color: var(--color-red); }
.nav-mobile .lang-mobile {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: none !important;
  margin-top: 16px;
}
.nav-mobile .lang-mobile a {
  font-size: 0.95rem;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive: cuando no caben todos los items, hamburguesa */
@media (max-width: 1180px) {
  .nav-link { font-size: 0.82rem; padding: 14px 10px; }
  .nav-link::after { left: 10px; right: 10px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .header-top { padding: 14px 0; border-bottom: none; }
  .header-bottom { display: none; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .header-actions { gap: 12px; }
  .header-phone { display: none; }
  .header-faq { display: none; }
  .nav-burger { display: flex; }
  .brand img { max-width: 130px; height: auto; }
}

/* Móvil pequeño: máximo aire al burger, sin desbordes */
@media (max-width: 480px) {
  .header-inner { padding: 0 12px; gap: 8px; }
  .header-actions { gap: 8px; }
  .lang-switcher .lang-current { padding: 6px 10px; font-size: 0.8rem; }
  .brand img { max-width: 100px; }
  .nav-burger { width: 28px; height: 28px; }
  .nav-burger span { width: 22px; }
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-red);
  color: var(--color-white);
  border: 2px solid var(--color-red);
  border-radius: 2px;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-red-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
  z-index: 0;
}
.btn:hover::before { transform: scaleX(1); }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn:hover { box-shadow: var(--shadow-red); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-outline::before { background: var(--color-white); }
.btn-outline:hover { color: var(--color-bg); }

.btn-arrow::after {
  content: '→';
  transition: transform var(--t-base);
  position: relative;
  z-index: 1;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================
   CONTENEDORES Y SECCIONES
   ============================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

section { position: relative; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 16px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--color-red);
  transform: translateY(-50%);
}

/* ============================================
   HERO con video de fondo
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: var(--header-h) 32px 32px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(6, 8, 16, 0.55) 70%, rgba(6, 8, 16, 0.85) 100%),
    linear-gradient(180deg, rgba(6, 8, 16, 0.5) 0%, transparent 30%, rgba(6, 8, 16, 0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 0 20px;
  animation: hero-rise 1s 0.3s both cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
}
@media (min-width: 1100px) {
  .hero-eyebrow { white-space: nowrap; }
}
.hero h1 {
  font-size: clamp(2.4rem, 7.2vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  line-height: 1.02;
}
.hero h1 .hero-h1-accent {
  display: inline-block;
  position: relative;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--color-white);
  text-transform: uppercase;
  margin-top: 12px;
}
.hero-sub .flag { color: var(--color-red); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--color-white));
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-red);
  animation: scroll-line 2s infinite ease-in-out;
}
@keyframes scroll-line {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* Hero compacto para páginas internas */
.hero-page {
  min-height: 70vh;
  padding: calc(var(--header-h) + 60px) 32px 60px;
}
.hero-page h1 { font-size: clamp(2.5rem, 7vw, 5rem); }

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   GRIDS y CARDS de actividades
   ============================================ */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card-activity {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  display: block;
  aspect-ratio: 4/5;
}
.card-activity:hover {
  transform: translateY(-6px);
  border-color: var(--color-red);
  box-shadow: var(--shadow-red);
}
.card-activity img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-activity:hover img { transform: scale(1.06); }
.card-activity .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 8, 16, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.card-activity .card-content { color: var(--color-white); }
.card-activity h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.card-activity p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.04em;
}
.card-activity .card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  font-size: 1.1rem;
  transition: background var(--t-base), transform var(--t-base);
}
.card-activity:hover .card-arrow {
  background: var(--color-red);
  transform: rotate(-45deg);
}

/* ============================================
   SECCIÓN ALTERNADA TEXTO+IMAGEN
   ============================================ */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-split.is-reverse > .split-text { order: 2; }
.section-split.is-reverse > .split-media { order: 1; }
.split-text h2 { margin-bottom: 24px; }
.split-text p { color: var(--color-text-muted); font-size: 1.02rem; margin-bottom: 16px; }
.split-text p strong { color: var(--color-white); font-weight: 600; }
.split-text .btn { margin-top: 16px; }
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  margin-bottom: 40px;
}
.split-media img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
}
.split-media img:nth-child(2) { margin-top: 40px; }

@media (max-width: 900px) {
  .section-split { grid-template-columns: 1fr; gap: 40px; }
  .section-split.is-reverse > .split-text { order: 2; }
  .section-split.is-reverse > .split-media { order: 1; }
  .split-media { margin-bottom: 0; }
  .split-media img:nth-child(2) { margin-top: 0; }
}

/* ============================================
   SECCIONES CON VIDEO BACKGROUND
   ============================================ */
.video-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 32px;
}
.video-section .hero-video,
.video-section .hero-overlay { position: absolute; inset: 0; }
.video-section .hero-overlay {
  background: linear-gradient(120deg, rgba(6,8,16,0.85) 0%, rgba(6,8,16,0.4) 60%, rgba(6,8,16,0.7) 100%);
}
.video-section .container { position: relative; z-index: 2; }
.video-section .video-content { max-width: 720px; }
.video-section h2 { margin-bottom: 24px; }
.video-section p { color: var(--color-text); font-size: 1.05rem; margin-bottom: 16px; }

/* ============================================
   FORMULARIO
   ============================================ */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 48px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  padding: 14px 16px;
  border-radius: 2px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-red);
  background: rgba(227, 6, 19, 0.04);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* Grupo prefijo internacional + número de teléfono */
.phone-group {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
}
.phone-group .phone-prefix {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px 28px 12px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.phone-group .phone-prefix:focus {
  outline: none;
  border-color: var(--color-red);
  background-color: rgba(227, 6, 19, 0.04);
}
.phone-group input[type="tel"] { width: 100%; }
@media (max-width: 480px) {
  .phone-group { grid-template-columns: 100px 1fr; gap: 6px; }
  .phone-group .phone-prefix { padding: 12px 24px 12px 8px; font-size: 0.88rem; }
}

.form-checkbox { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 24px; font-size: 0.9rem; color: var(--color-text-muted); }
.form-checkbox input { margin-top: 4px; accent-color: var(--color-red); }
.form-checkbox a { color: var(--color-red); text-decoration: underline; }
.form-status { margin-top: 16px; font-size: 0.92rem; min-height: 22px; }
.form-status.is-success { color: #4ade80; }
.form-status.is-error { color: var(--color-red-hover); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .hero { padding: var(--header-h) 16px 24px; }
  .hero-content { padding: 0 8px; }
  .container, .container-narrow { padding-left: 16px; padding-right: 16px; }
  section { padding-left: 0; padding-right: 0; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand img { height: 60px; margin-bottom: 20px; }
.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-col a:hover { color: var(--color-red); padding-left: 6px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 12px; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--color-red); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-white);
  transition: all var(--t-base);
}
.footer-social a:hover { background: var(--color-red); border-color: var(--color-red); padding-left: 0; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { color: var(--color-text-muted); }
.footer-legal a:hover { color: var(--color-red); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.4s infinite;
  transition: transform var(--t-base);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; fill: var(--color-white); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70%  { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 22px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 600px) {
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-red { color: var(--color-red); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

/* ============================================
   COMPONENTES DE CONTENIDO (páginas internas)
   ============================================ */
.prose { max-width: 880px; margin: 0 auto; }
.prose p { font-size: 1.05rem; color: var(--color-text); margin-bottom: 18px; }
.prose h2 { margin: 56px 0 20px; }
.prose h3 { margin: 40px 0 16px; color: var(--color-red); }
.prose ul.styled { margin: 20px 0; padding-left: 0; }
.prose ul.styled li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-text);
}
.prose ul.styled li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 2px;
  background: var(--color-red);
}
.prose .lead {
  font-size: 1.18rem;
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 28px;
}
.prose strong { color: var(--color-white); font-weight: 600; }
.prose a { color: var(--color-red); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--color-red-hover); }

/* Tarjeta de info / aviso */
.info-box {
  background: linear-gradient(135deg, rgba(227, 6, 19, 0.08) 0%, rgba(227, 6, 19, 0) 100%);
  border-left: 3px solid var(--color-red);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 4px 4px 0;
}
.info-box h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--color-white);
}

/* Galería interior */
.gallery-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}
.gallery-2 img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .gallery-2 { grid-template-columns: 1fr; }
  .gallery-2 img { aspect-ratio: 4/3; }
}

/* Lista de cenotes y dives */
.dive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.dive-list-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 20px 24px;
  border-radius: 4px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.dive-list-item:hover { border-color: var(--color-red); transform: translateY(-2px); }
.dive-list-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--color-red);
  margin-bottom: 6px;
}
.dive-list-item p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* CTA final de página */
.cta-block {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-blue-deep) 100%);
  border: 1px solid var(--color-border-strong);
  padding: 64px 48px;
  text-align: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(227, 6, 19, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-block p { color: var(--color-text-muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto 28px; }

/* Cards de blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.card-blog {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), border-color var(--t-base);
}
.card-blog:hover { transform: translateY(-6px); border-color: var(--color-red); }
.card-blog .card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-blog .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card-blog:hover .card-img img { transform: scale(1.06); }
.card-blog-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.card-blog-cat {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-red);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card-blog h3 { font-size: 1.3rem; margin-bottom: 12px; line-height: 1.2; }
.card-blog p { font-size: 0.92rem; color: var(--color-text-muted); margin-bottom: 20px; flex: 1; }
.card-blog .read-more {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}
.card-blog .read-more::after { content: ' →'; transition: margin var(--t-fast); display: inline-block; }
.card-blog:hover .read-more { color: var(--color-red); }
.card-blog:hover .read-more::after { margin-left: 6px; }


