﻿/* =====================================================
   COLEGIO CANADIENSE DE CARTAGENA â€” MAIN STYLESHEET
   ===================================================== */

/* ===== VARIABLES ===== */
:root {
  /* === PALETA OFICIAL COLEGIO CANADIENSE === */
  --rojo:        #D21216;   /* Rojo institucional primario */
  --rojo-dark:   #A50E11;   /* Rojo oscuro — hover, sombras */
  --azul:        #2C60AB;   /* Azul institucional */
  --azul-claro:  #4AA7DE;   /* Azul cielo — secundario */
  --naranja:     #ED6C14;   /* Naranja mandarina */
  --naranja-dark:#C45510;   /* Naranja oscuro — contraste */
  --verde:       #97BA20;   /* Verde lima */
  --amarillo:    #E2A801;   /* Dorado/Amarillo */
  --rosa:        #F0AACC;   /* Rosa claro — Preschool */
  --rosa-medio:  #EC7FB1;   /* Rosa medio */

  /* === NEUTRALES === */
  --blanco:      #FFFFFF;
  --negro:       #1A1A1A;
  --gris-claro:  #F5F5F5;
  --gris:        #888888;
  --gris-medio:  #555555;

  /* === ALIASES (compatibilidad) === */
  --dorado:      var(--naranja);
  --dorado-claro:var(--amarillo);

  /* === LAYOUT === */
  --topbar-h: 36px;
  --navbar-h: 80px;
  --transition: 0.4s ease;
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 12px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Helvetica Neue, Arial, sans-serif;
  color: var(--negro);
  background: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--azul);
  color: var(--blanco);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
  height: var(--topbar-h);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.topbar a:hover { color: var(--blanco); }
.topbar span { display: flex; align-items: center; gap: 6px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--navbar-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
/* Logo WordPress nativo */
.navbar-logo .custom-logo-link { display: flex; align-items: center; }
.navbar-logo .custom-logo-link img,
.navbar-logo .custom-logo {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.navbar-logo .logo-text-fallback {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.navbar-logo .logo-fallback-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--negro);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.navbar-logo .logo-fallback-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--rojo);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.navbar.scrolled .logo-fallback-name { color: var(--negro); }
.navbar-logo .logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--negro);
  line-height: 1.25;
  max-width: 155px;
}
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--negro);
  border-radius: 4px;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li.active > a { color: var(--rojo); }

/* Dropdown */
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blanco);
  border-top: 3px solid var(--rojo);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  z-index: 100;
  animation: fadeInDown 0.2s ease;
  /* Puente invisible para que el mouse llegue sin cerrar el dropdown */
  padding-top: 6px;
  margin-top: -6px;
}
/* Puente invisible entre el link y el dropdown */
.nav-links li::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 8px;
}
/* El dropdown en desktop lo maneja JS con delay; en móvil sigue con .open */
.nav-links li.open > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  color: var(--negro);
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
.dropdown a:hover { background: var(--gris-claro); color: var(--rojo); padding-left: 26px; }
.dropdown a:last-child { border-bottom: none; }

/* Nav CTA */
.btn-nav {
  background: var(--rojo) !important;
  color: var(--blanco) !important;
  padding: 9px 18px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--rojo-dark) !important; color: var(--blanco) !important; }

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--negro);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== PAGE OFFSET (para fixed navbar) ===== */
.page-content {
  margin-top: calc(var(--topbar-h) + var(--navbar-h));
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Borde rojo lateral */
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--rojo);
  z-index: 10;
}
/* Grain animado */
.hero-grain {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3px,4px); }
  40%  { transform: translate(3px,-3px); }
  60%  { transform: translate(-2px,3px); }
  80%  { transform: translate(4px,-2px); }
  100% { transform: translate(0,0); }
}
/* NÃºmero decorativo de fondo */
.hero-bg-cc {
  position: absolute;
  right: -60px; bottom: -80px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(280px, 35vw, 520px);
  font-weight: 900;
  color: rgba(26,26,26,0.05);
  line-height: 1;
  letter-spacing: -20px;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}
/* Grid layout del hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: center;
  gap: 60px;
  width: 100%;
  padding-top: calc(var(--topbar-h) + var(--navbar-h) + 80px);
  padding-bottom: 120px;
  position: relative;
  z-index: 3;
}
/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 32px;
  animation: fadeInLeft 0.8s ease 0.2s both;
}
.eyebrow-line {
  display: block;
  width: 40px; height: 2px;
  background: var(--rojo);
  flex-shrink: 0;
}
/* TÃ­tulo principal */
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(80px, 11vw, 155px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -3px;
  text-transform: uppercase;
  color: var(--negro);
  margin-bottom: 36px;
  animation: fadeInLeft 0.9s ease 0.3s both;
}
.hero-title-top { display: block; }
.hero-title-accent {
  display: block;
  color: var(--rojo);
  position: relative;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
/* DescripciÃ³n */
.hero-desc {
  font-size: 16px;
  color: rgba(26,26,26,0.6);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 44px;
  animation: fadeInLeft 1s ease 0.5s both;
}
/* Botones del hero */
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 60px;
  animation: fadeInLeft 1s ease 0.6s both;
}
/* Stats dentro del hero */
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(26,26,26,0.1);
  animation: fadeInLeft 1s ease 0.8s both;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.hero-stat-num strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--negro);
  line-height: 1;
}
.hero-stat-num em {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--dorado);
  font-style: normal;
}
.hero-stat p {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(26,26,26,0.45);
  margin-top: 6px;
}
/* Lado RINOX */
.hero-rinox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeIn 1.2s ease 0.5s both;
}
.rinox-circle {
  width: 340px; height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b0000 0%, var(--rojo) 50%, #c0272d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rinoxFloat 5s ease-in-out infinite;
  box-shadow: 0 40px 100px rgba(192,39,45,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.rinox-circle::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(232,101,26,0.5);
  animation: spin 25s linear infinite;
}
.rinox-circle::after {
  content: '';
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  border: 1px solid rgba(26,26,26,0.06);
}
.rinox-emoji { font-size: 110px; line-height: 1; display: block; }
.rinox-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(26,26,26,0.5);
  text-align: center;
  margin-top: 4px;
}
.rinox-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dorado);
  background: rgba(232,101,26,0.08);
  border: 1px solid rgba(232,101,26,0.3);
  padding: 8px 24px;
  border-radius: 100px;
}
@keyframes rinoxFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-20px) rotate(1deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Indicador de scroll */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px; left: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--dorado));
  animation: scrollLine 2s ease-in-out infinite;
}
.hero-scroll-indicator span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(26,26,26,0.35);
  writing-mode: vertical-rl;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* Corte diagonal al final del hero */
.hero-diagonal {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
  z-index: 4;
}
/* Animaciones de entrada */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
/* Mobile hero */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 100px; }
  .hero-rinox { display: none; }
  .hero-title { font-size: clamp(72px, 18vw, 110px); }
  .hero-stats { gap: 24px; }
  .hero-scroll-indicator { left: 24px; }
}
/* SecciÃ³n Manifiesto */
.manifesto {
  background: var(--rojo);
  padding: 100px 0;
  overflow: hidden;
  position: relative;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #9e1f24 0%, var(--rojo) 50%, #a82228 100%);
  z-index: 0;
}
/* Textura de puntos sobre el rojo */
.manifesto::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Patrón de puntos blancos en grid */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.22) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 1;
}
.manifesto-inner {
  position: relative;
  z-index: 3;
  text-align: center;
}
.manifesto-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}
.manifesto-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 32px;
}
.manifesto-title span {
  color: var(--dorado-claro);
  display: block;
}
.manifesto-sub {
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.manifesto-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(160px, 25vw, 320px);
  font-weight: 900;
  color: rgba(0,0,0,0.15);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 2;
}

/* Fade de salida del manifesto → blanco */
.manifesto-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent 0%, #fff 100%);
  z-index: 10;
  pointer-events: none;
}

/* ===== HERO INTERIOR (subpÃ¡ginas) ===== */
.hero-inner {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--negro);
}
.hero-inner .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-inner-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  color: var(--blanco);
  animation: fadeInUp 0.8s ease forwards;
}
.hero-inner-content .hero-eyebrow { margin-bottom: 14px; }
.hero-inner-content h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-inner-content p {
  font-size: 16px;
  opacity: 0.8;
  max-width: 550px;
}
/* Breadcrumb */
.breadcrumb {
  position: absolute;
  bottom: 20px; left: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: var(--dorado); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--dorado-claro); }
.breadcrumb span::before { content: 'â€º'; margin-right: 8px; }

/* ===== BOTONES ===== */
.btn-primary {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: background var(--transition), transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--rojo-dark);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192,39,45,0.35);
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--negro);
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--rojo);
  transition: background var(--transition), color var(--transition), transform 0.2s;
}
.btn-outline:hover { background: var(--rojo); color: var(--blanco); transform: translateY(-2px); }
.btn-dark {
  display: inline-block;
  background: var(--negro);
  color: var(--blanco);
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition: background var(--transition), transform 0.2s;
}
.btn-dark:hover { background: #333; color: var(--blanco); transform: translateY(-2px); }

/* ===== LAYOUT ===== */
section { padding: 96px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 40px; }

/* ===== SECTION HEADERS ===== */
.section-label {
  display: inline-block;
  color: var(--rojo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--negro);
  margin-bottom: 14px;
}
.section-title em { color: var(--rojo); font-style: normal; }
.section-title.light { color: var(--blanco); }
.section-title.light em { color: var(--dorado-claro); }
.section-sub {
  font-size: 16px;
  color: var(--gris);
  line-height: 1.75;
  max-width: 580px;
}
.section-sub.light { color: rgba(255,255,255,0.62); }
.s-header { margin-bottom: 56px; }
.s-header.center { text-align: center; }
.s-header.center .section-sub { margin: 0 auto; }
.divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--rojo), var(--dorado));
  border-radius: 2px;
  margin: 14px 0 18px;
}
.divider.center { margin: 14px auto 18px; }
.divider.gold { background: linear-gradient(90deg, var(--dorado), var(--dorado-claro)); }

/* ===== CARDS GENÃ‰RICAS ===== */
.card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img {
  height: 200px;
  background: #ddd;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 13px;
  position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px; }
.card-body h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.card-body p { font-size: 13.5px; color: var(--gris); line-height: 1.6; }
.card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--dorado);
  color: var(--negro);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== PLAY BUTTON ===== */
.play-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  position: relative; z-index: 2;
  flex-shrink: 0;
}
.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent var(--rojo);
  margin-left: 4px;
}
.play-btn:hover { transform: scale(1.12); background: var(--rojo); }
.play-btn:hover::after { border-left-color: var(--blanco); }

/* ===== CONTADORES ANIMADOS ===== */
.stats-bar {
  background: var(--negro);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  color: var(--dorado-claro);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 1px; text-transform: uppercase; }

/* ===== TABS ===== */
.tabs-nav {
  display: flex;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 13px 22px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gris);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  background: none;
  border-top: none; border-left: none; border-right: none;
  flex-shrink: 0;
}
.tab-btn.active, .tab-btn:hover { color: var(--rojo); border-bottom-color: var(--rojo); }
.tab-panel { display: none; animation: fadeIn 0.35s ease; }
.tab-panel.active { display: block; }

/* ===== PILLS FILTER ===== */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.pill {
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--blanco);
  color: var(--gris);
  border: 2px solid #e0e0e0;
  transition: all var(--transition);
  user-select: none;
}
.pill.active, .pill:hover { background: var(--rojo); color: var(--blanco); border-color: var(--rojo); }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ===== FORMULARIO ===== */
.form-dark { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--blanco);
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--dorado); background: rgba(255,255,255,0.1); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-group select option { background: #1a1a1a; }
.form-light .form-group label { color: var(--gris); }
.form-light .form-group input,
.form-light .form-group select,
.form-light .form-group textarea { background: var(--blanco); border: 1px solid #ddd; color: var(--negro); }
.form-light .form-group input:focus,
.form-light .form-group select:focus,
.form-light .form-group textarea:focus { border-color: var(--rojo); }
.form-light .form-group input::placeholder,
.form-light .form-group textarea::placeholder { color: #bbb; }
.form-light .form-group select option { background: var(--blanco); color: var(--negro); }
.btn-submit {
  background: linear-gradient(135deg, var(--rojo), var(--rojo-dark));
  color: var(--blanco);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
  font-family: inherit;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(192,39,45,0.4); }

/* ===== SECCIÃ“N OSCURA ===== */
.bg-dark { background: var(--azul); color: var(--blanco); }
.bg-dark .section-title { color: var(--blanco); }
.bg-dark .section-sub { color: rgba(255,255,255,0.6); }
.bg-gray { background: var(--gris-claro); }
.bg-gradient { background: linear-gradient(135deg, var(--negro) 0%, #2a0a0a 100%); color: var(--blanco); }

/* ===== INFO ITEMS (contacto) ===== */
.info-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.info-icon {
  width: 42px; height: 42px;
  background: rgba(232,101,26,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.info-text p { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.info-text strong { font-size: 15px; color: var(--blanco); }
.info-text a { color: var(--blanco); transition: color var(--transition); }
.info-text a:hover { color: var(--dorado-claro); }
.horario-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,101,26,0.12);
  border: 1px solid rgba(232,101,26,0.28);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--dorado-claro);
  margin-bottom: 22px;
}
.social-links { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: background var(--transition), transform 0.2s;
  color: var(--blanco);
  cursor: pointer;
}
.social-link:hover { background: var(--rojo); transform: translateY(-3px); }

/* ===== EL ALMA ===== */
.alma-section {
  background: #fff;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.alma-bg-num {
  position: absolute;
  right: -40px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(200px,28vw,400px);
  font-weight: 900;
  color: rgba(26,26,26,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.alma-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  width: 100%;
  position: relative;
  z-index: 1;
}
/* Nav lateral */
.alma-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 80px 60px;
  border-right: 1px solid rgba(26,26,26,0.08);
  background: rgba(26,26,26,0.025);
  gap: 4px;
}
.alma-nav-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  color: rgba(26,26,26,0.35);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 0;
  cursor: pointer;
  transition: color 0.3s;
  text-align: left;
  position: relative;
}
.alma-nav-btn:hover { color: rgba(26,26,26,0.75); }
.alma-nav-btn.active { color: var(--negro); }
.alma-nav-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: rgba(26,26,26,0.12);
  transition: color 0.3s;
  min-width: 30px;
}
.alma-nav-btn.active .alma-nav-num { color: var(--dorado); }
.alma-nav-line {
  position: absolute;
  right: 0;
  top: 50%; transform: translateY(-50%);
  width: 0; height: 2px;
  background: var(--rojo);
  transition: width 0.4s ease;
}
.alma-nav-btn.active .alma-nav-line { width: 32px; }
/* Paneles */
.alma-panels { position: relative; }
.alma-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 80px 80px 60px;
  min-height: 100vh;
  animation: almaPanelIn 0.5s ease;
}
.alma-panel.active { display: grid; }
.alma-panel-visual { position: relative; }
@keyframes almaPanelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alma-panel-valores { display: block !important; }
.alma-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 20px;
}
.alma-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--negro);
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 32px;
}
.alma-title em { color: var(--rojo); font-style: normal; display: block; }
.alma-text {
  font-size: 16px;
  color: rgba(26,26,26,0.6);
  line-height: 1.85;
  margin-bottom: 16px;
}
.alma-text strong { color: var(--negro); }
.alma-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  background: rgba(26,26,26,0.05);
  border: 1px solid rgba(26,26,26,0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.alma-img-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rojo);
}
.alma-img-placeholder { font-size: 13px; color: rgba(26,26,26,0.22); }
/* Valores grid */
.alma-valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.alma-valor-card {
  background: #fff;
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}
.alma-valor-card:hover { background: #fff; box-shadow: 0 8px 24px rgba(26,26,26,0.1); transform: translateY(-4px); }
.alma-valor-icon {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--rojo);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.alma-valor-card h4 { font-size: 15px; font-weight: 800; color: var(--negro); margin-bottom: 8px; }
.alma-valor-card p  { font-size: 12px; color: rgba(26,26,26,0.5); line-height: 1.6; }
@media (max-width: 900px) {
  .alma-layout { grid-template-columns: 1fr; }
  .alma-nav { flex-direction: row; overflow-x: auto; padding: 24px; gap: 0; border-right: none; border-bottom: 1px solid rgba(26,26,26,0.08); }
  .alma-nav-btn { white-space: nowrap; padding: 10px 16px; font-size: 11px; }
  .alma-nav-line { display: none; }
  .alma-panel { grid-template-columns: 1fr; padding: 40px 24px; min-height: auto; }
  .alma-panel-visual { display: none; }
  .alma-valores-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== ASÃ SE VIVE ===== */
.vive-section { background: #fff; padding: 96px 0 0; }
.vive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}
.vive-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--negro);
}
.vive-title em { color: var(--rojo); font-style: normal; }
.vive-sub { font-size: 16px; color: var(--gris); line-height: 1.7; max-width: 340px; }
/* Grid mosaico */
.vive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 12px;
}
.vive-card-lg { grid-column: span 2; }
.vive-card-sm { grid-column: span 1; }
.vive-card-xl { grid-column: span 3; }
.vive-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--negro);
  cursor: pointer;
}
.vive-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.vive-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-accent, var(--rojo));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.vive-card:hover::before { opacity: 0.85; }
.vive-card:hover .vive-card-bg { transform: scale(1.05); }
.vive-card-content {
  position: absolute;
  inset: 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}
.vive-card-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.3);
  margin-bottom: auto;
  transition: color 0.3s;
}
.vive-card:hover .vive-card-code { color: rgba(255,255,255,0.7); }
.vive-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.9;
  letter-spacing: -1px;
  margin-bottom: 12px;
  transition: transform 0.4s ease;
}
.vive-card:hover .vive-card-title { transform: translateY(-4px); }
.vive-card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.0);
  line-height: 1.6;
  max-width: 380px;
  transition: color 0.4s ease 0.05s, transform 0.4s ease;
  transform: translateY(8px);
}
.vive-card:hover .vive-card-desc { color: rgba(255,255,255,0.9); transform: translateY(0); }
.vive-card-arrow {
  font-size: 24px;
  color: rgba(255,255,255,0);
  margin-top: 16px;
  transition: color 0.3s, transform 0.3s;
}
.vive-card:hover .vive-card-arrow { color: #fff; transform: translateX(6px); }
@media (max-width: 768px) {
  .vive-grid { grid-template-columns: 1fr; }
  .vive-card-lg, .vive-card-sm, .vive-card-xl { grid-column: span 1; }
  .vive-card-desc { color: rgba(255,255,255,0.7); transform: none; }
}

/* ===== FRASE IMPACTO ===== */
.frase-impacto {
  background: var(--negro);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Grain sobre el navy */
.frase-impacto::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  animation: grain 0.8s steps(3) infinite;
}
.frase-impacto p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 6vw, 82px);
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  line-height: 1.05;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.frase-impacto strong { color: var(--dorado); font-weight: 900; }

/* ===== COMUNIDAD ===== */
.comunidad-section { background: #fff; padding: 96px 0 0; overflow: hidden; }
.comunidad-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}
.comunidad-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--negro);
  line-height: 0.9;
  letter-spacing: -2px;
}
.comunidad-title em { color: var(--rojo); font-style: normal; }
.comunidad-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.com-filter {
  background: rgba(26,26,26,0.04);
  border: 1px solid rgba(26,26,26,0.12);
  color: rgba(26,26,26,0.5);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 20px; border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}
.com-filter:hover { color: var(--negro); border-color: rgba(26,26,26,0.3); }
.com-filter.active { background: var(--rojo); border-color: var(--rojo); color: #fff; }
/* Mosaic grid */
.comunidad-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 8px;
}
.com-card { position: relative; overflow: hidden; border-radius: 8px; background: #1e2433; cursor: pointer; }
.com-card-lg { grid-column: span 2; }
.com-card-sm { grid-column: span 1; }
.com-card-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e2433, #151c2c);
  display: flex;
  align-items: flex-start;
  padding: 20px;
  transition: transform 0.5s ease;
}
.com-card:hover .com-card-img { transform: scale(1.05); }
.com-badge {
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--dorado);
  background: rgba(232,101,26,0.15);
  border: 1px solid rgba(232,101,26,0.3);
  padding: 5px 12px; border-radius: 100px;
}
.com-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(192,39,45,0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.com-card:hover .com-card-overlay { opacity: 1; }
.com-card-overlay h4 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.com-card-overlay p  { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.5; }
/* Nombre visible siempre */
.com-card::after {
  content: attr(data-cat);
  position: absolute;
  bottom: 20px; left: 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 900;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  letter-spacing: -0.5px;
  transition: opacity 0.3s;
  pointer-events: none;
}
.com-card:hover::after { opacity: 0; }
@media (max-width: 900px) {
  .comunidad-mosaic { grid-template-columns: 1fr 1fr; }
  .com-card-lg { grid-column: span 2; }
  .com-card-overlay { opacity: 1; }
  .com-card::after { display: none; }
}
@media (max-width: 560px) {
  .comunidad-mosaic { grid-template-columns: 1fr; }
  .com-card-lg, .com-card-sm { grid-column: span 1; }
}

/* ===== MARQUEE ===== */
.marquee-strip {
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.marquee-gold { background: var(--dorado); }
.marquee-dark { background: #F2F2F2; }
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; }
.marquee-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 0 28px;
}
.marquee-gold .marquee-item { color: var(--negro); }
.marquee-dark .marquee-item { color: rgba(26,26,26,0.45); }
.marquee-sep { font-size: 16px; opacity: 0.4; flex-shrink: 0; }
.marquee-gold .marquee-sep { color: var(--negro); }
.marquee-dark .marquee-sep { color: rgba(26,26,26,0.3); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== CAMINO EDUCATIVO â€” HORIZONTAL STICKY SCROLL ===== */
.camino-wrapper { height: 350vh; position: relative; }
.camino-sticky {
  position: sticky;
  top: calc(var(--topbar-h) + var(--navbar-h));
  height: calc(100vh - var(--topbar-h) - var(--navbar-h));
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.camino-bg-num {
  position: absolute;
  right: -20px; bottom: -60px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(200px, 30vw, 420px);
  font-weight: 900;
  color: rgba(26,26,26,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.camino-progress-bar {
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: rgba(26,26,26,0.1);
  z-index: 10;
}
.camino-progress-fill {
  width: 100%; height: 0%;
  background: var(--dorado);
  transition: height 0.08s linear;
}
.camino-dots {
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}
.camino-dot { display: flex; align-items: center; gap: 10px; }
.camino-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(26,26,26,0.2);
  transition: background 0.4s, transform 0.4s;
  flex-shrink: 0;
}
.camino-dot.active::before { background: var(--dorado); transform: scale(1.5); }
.camino-dot span {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(26,26,26,0.35);
  transition: color 0.4s;
  white-space: nowrap;
}
.camino-dot.active span { color: rgba(26,26,26,0.8); }
.camino-track {
  display: flex;
  width: 300vw;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}
.camino-slide {
  width: 100vw; height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.camino-slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
.camino-rinox-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(196,78,0,0.35);
  color: var(--rojo);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.camino-rinox-icon { font-size: 18px; }
.camino-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(64px, 9vw, 130px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--negro);
  line-height: 0.88;
  letter-spacing: -3px;
  margin-bottom: 20px;
}
.camino-title span { color: var(--rojo); }
.camino-horario { font-size: 13px; color: var(--rojo); font-weight: 600; margin-bottom: 20px; }
.camino-desc {
  font-size: 15px;
  color: rgba(26,26,26,0.6);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 32px;
}
.camino-grades { display: flex; flex-direction: column; gap: 8px; }
.camino-grade {
  background: rgba(26,26,26,0.05);
  border-left: 3px solid;
  border-radius: 0 6px 6px 0;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(26,26,26,0.75);
  transition: background 0.3s;
}
.camino-grade:hover { background: rgba(26,26,26,0.09); }
.camino-slide-visual { position: relative; }
.camino-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--accent, var(--naranja)) 0%, color-mix(in srgb, var(--accent, var(--naranja)) 60%, #000) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
/* Patrón de puntos decorativo sobre el fondo */
.camino-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
}
/* Borde de acento en la parte superior */
.camino-img-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: rgba(255,255,255,0.4);
  z-index: 2;
}
.camino-img-placeholder {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  z-index: 2;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.camino-img-num {
  position: absolute;
  bottom: -20px; right: -10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 160px; font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1; user-select: none;
  z-index: 1;
}
@media (max-width: 768px) {
  .camino-wrapper { height: auto; }
  .camino-sticky { position: relative; top: 0; height: auto; flex-direction: column; padding: 60px 0; }
  .camino-track { width: 100%; flex-direction: column; transform: none !important; transition: none; }
  .camino-slide { width: 100%; height: auto; padding: 40px 0; }
  .camino-slide-inner { grid-template-columns: 1fr; padding: 0 24px; gap: 40px; }
  .camino-dots, .camino-progress-bar, .camino-bg-num { display: none; }
  .camino-title { font-size: clamp(60px, 16vw, 90px); }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--negro);
  color: rgba(255,255,255,0.45);
  padding: 28px 40px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.site-footer a { color: var(--dorado); transition: color var(--transition); }
.site-footer a:hover { color: var(--dorado-claro); }

/* ===== CAROUSEL ===== */
.carousel { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide { flex-shrink: 0; width: 100%; }
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--rojo);
  background: transparent;
  color: var(--rojo);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--rojo); color: var(--blanco); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active { background: var(--rojo); transform: scale(1.3); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(9px); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.visible { opacity: 1; transform: translate(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none; }
  .navbar { top: 0; padding: 0 20px; }
  .page-content { margin-top: var(--navbar-h); }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0; bottom: 0;
    background: var(--blanco);
    padding: 16px 0;
    overflow-y: auto;
    z-index: 998;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px 24px; border-bottom: 1px solid #f0f0f0; font-size: 15px; border-radius: 0; }
  .dropdown { display: none !important; position: static; box-shadow: none; border: none; border-radius: 0; background: var(--gris-claro); animation: none; }
  .nav-links li.open > .dropdown { display: block !important; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
  section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-inner { height: 260px; }
  .hero-inner-content { padding: 0 24px; }
  .breadcrumb { left: 24px; }
  /* Hero */
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { min-width: 120px; }
  /* Manifesto */
  .manifesto { padding: 72px 0 100px; }
  .manifesto-title { letter-spacing: -1px; }
  /* Vive */
  .vive-grid { grid-auto-rows: 260px; }
  /* Section headers */
  .section-tag { font-size: 9px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  /* Reducir padding de secciones en móvil pequeño */
  section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .container-sm { padding: 0 16px; }
  /* Hero title más pequeño en móvil pequeño */
  .hero-title { font-size: clamp(48px, 13vw, 72px) !important; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 12px; }
  .hero-stat-num { font-size: 28px; }
  .hero-stat-label { font-size: 10px; }
  /* Manifesto más compacto */
  .manifesto { padding: 56px 0 90px; }
  /* Alma valores: 1 columna en móvil pequeño */
  .alma-valores-grid { grid-template-columns: 1fr !important; }
  /* Vive cards más cortas */
  .vive-grid { grid-auto-rows: 220px; }
  /* Camino */
  .camino-slide-inner { padding: 0 16px; }
  /* Footer */
  .footer-brand-name { font-size: 17px; }
  .footer-bottom { gap: 8px; }
  .footer-bottom p { font-size: 12px; }
  /* WA widget */
  .wa-popup { width: 94vw; right: 0; }
}

/* =====================================================
   ANIMACIONES AVANZADAS
   ===================================================== */

/* ===== CURSOR PERSONALIZADO ===== */
*, *::before, *::after { cursor: none !important; }
.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--dorado-claro);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  pointer-events: none;
  z-index: 99999;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--rojo);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.4s ease, height 0.4s ease, border-color 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  z-index: 99998;
}
.cursor-dot.hover  { width: 12px; height: 12px; background: var(--rojo); }
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--dorado); opacity: 0.6; }
.cursor-dot.click  { transform: translate(-50%, -50%) scale(0.5); }
.cursor-ring.click { transform: translate(-50%, -50%) scale(1.4); opacity: 0.3; }
@media (max-width: 768px) {
  *, *::before, *::after { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== TYPEWRITER / SPLIT TEXT ===== */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes wordReveal {
  to { transform: translateY(0); }
}
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--dorado);
  white-space: nowrap;
  animation: typing 2.5s steps(40, end), blink 0.75s step-end infinite;
}
@keyframes typing  { from { width: 0 } to { width: 100% } }
@keyframes blink   { 50% { border-color: transparent } }

/* ===== PARALLAX ===== */
.parallax-wrap { overflow: hidden; }
.parallax-el   { will-change: transform; }

/* ===== DECO RINGS (spinning animation) ===== */
.deco-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(192,39,45,0.05);
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.deco-ring::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1.5px dashed rgba(232,101,26,0.5);
  animation: spin 18s linear infinite;
}
.deco-ring::after {
  content: '';
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  border: 1px solid rgba(192,39,45,0.25);
  animation: spin 30s linear infinite reverse;
}
.deco-ring i {
  display: block;
  position: absolute;
  inset: -64px;
  border-radius: 50%;
  border: 1px solid rgba(26,26,26,0.1);
  animation: spin 50s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
  position: relative;
  z-index: 1;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}
.wave-top    { margin-bottom: -2px; }
.wave-bottom { margin-top: -2px; }

/* ===== MAGNETIC BUTTON ===== */
.btn-magnetic {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RINOX FLOAT ===== */
.rinox-float {
  animation: rhinoFloat 3.5s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
}
@keyframes rhinoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-16px) rotate(1deg); }
}
.rinox-entrance {
  opacity: 0;
  transform: translateX(80px) scale(0.85);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.rinox-entrance.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ===== GLITCH TEXT (hero optional) ===== */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--rojo);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--dorado);
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-4px, 2px); }
  94% { transform: translate(4px, -2px); }
  96% { transform: translate(-2px, 0); }
}
@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(4px, 2px); }
  93% { transform: translate(-4px, -2px); }
  95% { transform: translate(2px, 0); }
}

/* ===== TEXTO ROTATIVO HERO ===== */
.rotating-text {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.15em;
  vertical-align: bottom;
}
.rotating-text span {
  display: block;
  position: absolute;
  width: 100%;
  animation: rotateWords 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  opacity: 0;
  color: var(--rojo);
}
.rotating-text span:nth-child(1) { animation-delay: 0s; }
.rotating-text span:nth-child(2) { animation-delay: 2s; }
.rotating-text span:nth-child(3) { animation-delay: 4s; }
@keyframes rotateWords {
  0%   { opacity: 0; transform: translateY(100%); }
  8%   { opacity: 1; transform: translateY(0); }
  33%  { opacity: 1; transform: translateY(0); }
  41%  { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(-100%); }
}

/* ===== SECTION CLIP PATH ===== */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding-bottom: 120px !important;
}
.clip-diagonal-reverse {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  padding-top: 120px !important;
}

/* ===== PARTICLES (fondo hero) ===== */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-content { z-index: 3; }
.hero-overlay { z-index: 2; }

/* ===== PROGRESS BAR (scroll indicator) ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rojo), var(--dorado));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== HOVER CARDS 3D ===== */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  will-change: transform;
}
.card-3d:hover { transform: perspective(800px) rotateX(4deg) rotateY(-4deg) scale(1.02); }

/* ===== NÃšMERO GRANDE DE FONDO ===== */
.bg-number {
  position: absolute;
  font-size: clamp(120px, 20vw, 220px);
  font-weight: 900;
  opacity: 0.04;
  color: var(--blanco);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  right: -20px; top: 50%;
  transform: translateY(-50%);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--negro);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1.4fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--dorado-claro); }
.footer-contact li { font-size: 13px; line-height: 1.6; }
.footer-contact li a { color: rgba(255,255,255,0.6); }
.footer-contact li a:hover { color: var(--dorado-claro); }

.footer-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin: 16px 0 8px;
}
.footer-brand-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  font-style: italic;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.3s, color 0.3s;
}
.footer-socials a:hover { background: var(--rojo); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 36px;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--dorado); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== LINE REVEAL ===== */
.line-reveal {
  overflow: hidden;
}
.line-reveal span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-reveal.visible span { transform: translateY(0); }
.line-reveal.visible span:nth-child(2) { transition-delay: 0.1s; }
.line-reveal.visible span:nth-child(3) { transition-delay: 0.2s; }

/* ===== WHATSAPP FLOATING WIDGET ===== */
.wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Popup card */
.wa-popup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  width: 300px;
  overflow: hidden;
  transform: scale(0.85) translateY(16px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-widget.open .wa-popup {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Header del popup */
.wa-popup-header {
  background: #075E54;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-popup-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
}
.wa-popup-avatar::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #25D366;
  border: 2px solid #075E54;
  border-radius: 50%;
}
.wa-popup-info { flex: 1; }
.wa-popup-name {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
.wa-popup-status {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}
.wa-popup-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.wa-popup-close:hover { color: #fff; }

/* Cuerpo del chat */
.wa-popup-body {
  background: #ECE5DD;
  padding: 16px;
  min-height: 80px;
  display: flex;
  align-items: flex-start;
}
.wa-chat-bubble {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-width: 220px;
  position: relative;
}
.wa-chat-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border-width: 0 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}
.wa-chat-time {
  display: block;
  font-size: 10px;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

/* Footer: input */
.wa-popup-footer {
  background: #F0F0F0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-popup-input {
  flex: 1;
  border: none;
  background: #fff;
  border-radius: 24px;
  padding: 9px 16px;
  font-size: 13px;
  outline: none;
  color: #333;
}
.wa-popup-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.wa-popup-send:hover { background: #1ebe5d; }
.wa-popup-send svg { fill: #fff; width: 18px; height: 18px; }

/* Botón flotante */
.wa-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* Pulso de notificación */
.wa-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 480px) {
  .wa-widget { bottom: 18px; right: 18px; }
  .wa-popup { width: 260px; }
}

/* ===== VIDEO INTRO OVERLAY ===== */
.vid-intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: vidFadeIn 0.5s ease;
}
.vid-intro-overlay.closing {
  animation: vidFadeOut 0.5s ease forwards;
}
@keyframes vidFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes vidFadeOut { from { opacity: 1; } to { opacity: 0; } }

.vid-intro-iframe {
  width: min(100vw, 177.78vh);
  height: min(100vh, 56.25vw);
  border: none;
  display: block;
}
.vid-intro-skip {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.vid-intro-skip:hover { background: rgba(255,255,255,0.25); }

/* ===== VIDEO LIGHTBOX ===== */
.vid-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vidFadeIn 0.25s ease;
}
.vid-lightbox.closing { animation: vidFadeOut 0.25s ease forwards; }
.vid-lightbox-inner {
  position: relative;
  width: min(90vw, 960px);
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.vid-lightbox-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.vid-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.vid-lightbox-close:hover { opacity: 1; }

/* ===== VIVE CARD PLAY ICON ===== */
.vive-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--rojo);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 5;
  pointer-events: none;
}
.vive-card.has-video:hover .vive-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #fff;
}

/* ===== CAMINO CIERRE ===== */
.camino-cierre {
  text-align: center;
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0 16px;
}
.camino-cierre p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--gris);
  font-style: italic;
}

/* ===== COMUNIDAD INTRO ===== */
.comunidad-intro-text {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gris);
}

/* ===== TOAST NOTIFICATIONS ===== */
#cc-toasts {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.cc-toast {
  pointer-events: all;
  min-width: 260px;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.cc-toast.success { background: #1a8a4a; }
.cc-toast.error   { background: #c0392b; }
.cc-toast.fade-out { animation: toastOut 0.3s ease forwards; }
.cc-toast-icon { font-size: 18px; flex-shrink: 0; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); }    to { opacity: 0; transform: translateX(60px); } }

@media (max-width: 600px) {
  #cc-toasts { bottom: 80px; right: 12px; left: 12px; }
  .cc-toast { min-width: unset; max-width: unset; }
  .vid-intro-skip { bottom: 16px; right: 16px; }
}

