/* ================================================================
   PUPILOCHESS — Diseño Premium 2025
   Paleta: Navy #0a1628 | Azul #1A3A6B | Rojo #C0392B | Blanco (sin dorado: decisión de la usuaria)
   Títulos: Bebas Neue (una sola variante: sin negrita sintética, ver html{font-synthesis})
================================================================ */

/* ── GOOGLE FONTS: se cargan en includes/header.php (Bebas Neue + Inter) ── */

/* ── VARIABLES ───────────────────────────────────────────────── */
:root {
  --navy:        #0a1628;
  --navy-2:      #0f1f3d;
  --azul:        #1A3A6B;
  --azul-claro:  #2456A4;
  --azul-medio:  #1e4d8c;
  --rojo:        #C0392B;
  --rojo-dark:   #962d22;
  --blanco:      #FFFFFF;
  --gris-bg:     #F0F4F9;
  --gris-borde:  #DDE3EE;
  --texto:       #0f172a;
  --texto-suave: #64748b;
  --texto-medio: #334155;

  /* Gradientes */
  --grad-navy:   linear-gradient(135deg, #0a1628 0%, #1A3A6B 100%);
  --grad-rojo:   linear-gradient(135deg, #962d22 0%, #C0392B 100%);
  --grad-hero:   linear-gradient(135deg, #060d1a 0%, #0f2447 45%, #1a0e3d 100%);
  --grad-mesh:   radial-gradient(ellipse at 20% 50%, rgba(26,58,107,.4) 0%, transparent 60%),
                 radial-gradient(ellipse at 80% 20%, rgba(192,57,43,.25) 0%, transparent 50%),
                 radial-gradient(ellipse at 60% 80%, rgba(192,57,43,.15) 0%, transparent 50%),
                 linear-gradient(135deg, #060d1a 0%, #0f2447 100%);

  /* Sombras */
  --shadow-xs:   0 1px 4px rgba(0,0,0,.08);
  --shadow-sm:   0 4px 16px rgba(0,0,0,.1);
  --shadow-md:   0 10px 40px rgba(0,0,0,.15);
  --shadow-lg:   0 24px 64px rgba(0,0,0,.2);
  --shadow-azul: 0 12px 40px rgba(26,58,107,.35);
  --shadow-rojo: 0 12px 40px rgba(192,57,43,.35);
  --glow-rojo:   0 0 30px rgba(192,57,43,.45), 0 0 60px rgba(192,57,43,.18);

  /* Tipografía */
  --font-h:      'Bebas Neue', Impact, 'Arial Narrow Bold', 'Arial Narrow', sans-serif;
  --font-b:      'Inter', system-ui, sans-serif;

  /* Layout */
  --nav-h:       72px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-full: 999px;
  --max-w:       1200px;
  --trans:       .3s cubic-bezier(.4,0,.2,1);
  --trans-lg:    .6s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-b); color: var(--texto); background: var(--blanco); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
/* Bebas Neue solo tiene un grosor: sin negrita sintética (se vería borrosa); las cursivas sí se permiten */
html { font-synthesis: style; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-h); line-height: 1.2; letter-spacing: .02em; }
input, select, textarea { font-family: var(--font-b); }

/* ── UTILIDADES ──────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }

/* ── CHIP / ETIQUETA ─────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.35);
  color: var(--rojo);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.chip-white {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
}
.chip-azul {
  background: rgba(26,58,107,.08);
  border-color: rgba(26,58,107,.2);
  color: var(--azul);
}

/* ── TÍTULOS DE SECCIÓN ──────────────────────────────────────── */
.section-heading {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: .75rem;
}
.section-heading span { color: var(--rojo); }
.section-heading .gold { color: var(--rojo); }
.section-sub {
  color: var(--texto-suave);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
}
.divider {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin: 18px 0 40px;
}
.divider-rojo  { background: var(--grad-rojo); }
.divider-dor   { background: var(--grad-rojo); }
.divider-white { background: rgba(255,255,255,.4); }
.divider-center { margin-left: auto; margin-right: auto; }

/* ── BOTONES ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all var(--trans);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity var(--trans);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--azul);
  color: var(--blanco);
  box-shadow: var(--shadow-azul);
}
.btn-primary:hover { background: var(--azul-medio); transform: translateY(-3px); box-shadow: 0 18px 50px rgba(26,58,107,.45); color: #fff; }

.btn-rojo {
  background: var(--grad-rojo);
  color: var(--blanco);
  box-shadow: var(--shadow-rojo);
}
.btn-rojo:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(192,57,43,.5); color: #fff; }

/* .btn-dorado: nombre heredado; ahora es el botón rojo destacado */
.btn-dorado {
  background: var(--grad-rojo);
  color: var(--blanco);
  box-shadow: var(--shadow-rojo);
  font-weight: 800;
}
.btn-dorado:hover { transform: translateY(-3px); box-shadow: var(--glow-rojo); color: var(--blanco); }

.btn-outline-white {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); color: #fff; transform: translateY(-2px); }

.btn-lg   { padding: 18px 44px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm   { padding: 9px 20px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn-pulse { animation: pulse 2.5s ease infinite; }
@keyframes pulse {
  0%,100% { box-shadow: var(--shadow-rojo); }
  50%      { box-shadow: 0 0 0 14px rgba(192,57,43,0), var(--glow-rojo); }
}

/* ── CHESS PHOTO BACKGROUND ────────────────────────────────── */
.chess-pattern {
  background-image: url('../img/fotos/piezas-enfoque-selectivo-1920.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.chess-pattern-light {
  background-image: url('../img/fotos/pieza-negra-en-tablero-1920.jpg');
  background-size: cover;
  background-position: center;
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--trans);
  background: rgba(10,22,40,.0);
}
.navbar.scrolled {
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 8px 32px rgba(0,0,0,.3);
  height: 60px;
}
.navbar.solid { background: var(--navy); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--blanco);
  text-decoration: none;
}
.nav-logo img {
  height: 90px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,0,0,.35));
  transition: all var(--trans);
}
.navbar.scrolled .nav-logo img { height: 70px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--trans);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--blanco);
  background: rgba(255,255,255,.1);
}
.nav-link.active { font-weight: 700; }
.nav-link i { font-size: .8rem; opacity: .7; }

.nav-cta {
  background: var(--rojo) !important;
  color: var(--blanco) !important;
  margin-left: 8px;
  box-shadow: 0 4px 20px rgba(192,57,43,.4);
}
.nav-cta:hover {
  background: var(--rojo-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,57,43,.5) !important;
  color: #fff !important;
}
.nav-admin {
  background: rgba(192,57,43,.12) !important;
  color: var(--blanco) !important;
  border: 1px solid rgba(192,57,43,.3);
  padding: 8px 13px !important;
  margin-left: 4px;
}
.nav-admin:hover { background: rgba(192,57,43,.2) !important; color: var(--blanco) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--trans);
  background: none;
  border: none;
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.ham-line {
  width: 24px; height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all var(--trans);
  display: block;
}
.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 998;
}
.nav-overlay.active { display: block; }
.nav-spacer { height: var(--nav-h); }

/* ── HERO SLIDER ─────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.hero-swiper { position: relative; }
.hero-swiper .swiper-slide {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-hero);
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 7s linear;
  filter: brightness(.35) saturate(1.2);
}
.swiper-slide-active .slide-bg { transform: scale(1.08); }
.slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,13,26,.5) 0%, transparent 40%, rgba(6,13,26,.7) 100%),
    linear-gradient(to right, rgba(6,13,26,.6) 0%, transparent 60%);
}

/* Chess decoration en el hero */
.hero-chess-deco {
  position: absolute; inset: 0;
  pointer-events: none;
}

/* Piezas flotantes decorativas */
.floating-pieces {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fp {
  position: absolute;
  font-size: 5rem;
  opacity: .04;
  animation: floatPiece 12s ease-in-out infinite;
  color: #fff;
  line-height: 1;
}
.fp:nth-child(1) { top: 10%; left: 5%;  animation-delay: 0s;    font-size: 7rem; }
.fp:nth-child(2) { top: 60%; left: 90%; animation-delay: 2s;    font-size: 4rem; }
.fp:nth-child(3) { top: 80%; left: 15%; animation-delay: 4s;    font-size: 6rem; opacity: .03; }
.fp:nth-child(4) { top: 20%; left: 75%; animation-delay: 1.5s;  font-size: 5rem; }
.fp:nth-child(5) { top: 45%; left: 50%; animation-delay: 3s;    font-size: 3rem; opacity: .025; }
@keyframes floatPiece {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-24px) rotate(3deg); }
  66%      { transform: translateY(12px) rotate(-2deg); }
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.slide-titulo {
  font-family: var(--font-h);
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  font-weight: 800;
  color: var(--blanco);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
  letter-spacing: -.5px;
}
.slide-titulo em {
  font-style: normal;
  color: var(--blanco);
}
.slide-subtitulo {
  color: rgba(255,255,255,.85);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.slide-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  animation: bounceY 2s ease infinite;
}
.scroll-indicator i { font-size: 1rem; }
@keyframes bounceY {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* Swiper controls */
.swiper-button-next, .swiper-button-prev {
  width: 50px !important; height: 50px !important;
  background: rgba(255,255,255,.12) !important;
  backdrop-filter: blur(8px);
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: var(--blanco) !important;
  transition: all var(--trans) !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  background: var(--rojo) !important;
  border-color: var(--blanco) !important;
  color: var(--navy) !important;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; font-weight: 900 !important; }
.swiper-pagination-bullet { background: rgba(255,255,255,.5) !important; opacity: 1 !important; transition: all var(--trans) !important; }
.swiper-pagination-bullet-active { background: var(--rojo) !important; transform: scale(1.4) !important; }

/* ── SECCIÓN BIENVENIDA ──────────────────────────────────────── */
.welcome-section {
  padding: 110px 0;
  background: var(--blanco);
  position: relative;
  overflow: hidden;
}
.welcome-section::before {
  content: '♟';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28rem;
  color: var(--azul);
  opacity: .025;
  line-height: 1;
  pointer-events: none;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.welcome-text .section-heading { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.welcome-text p {
  color: var(--texto-medio);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 24px;
}
.welcome-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.ws-stat {
  padding: 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gris-borde);
  text-align: center;
  transition: all var(--trans);
}
.ws-stat:hover { border-color: var(--azul); box-shadow: var(--shadow-azul); transform: translateY(-4px); }
.ws-num {
  font-family: var(--font-h);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--azul);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.ws-lbl { color: var(--texto-suave); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.welcome-visual {
  position: relative;
}
.chess-board-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  background-image: url('../img/fotos/caballos-frente-a-frente-800.jpg');
  background-size: cover;
  background-position: center;
}

/* ── SERVICIOS ───────────────────────────────────────────────── */
.services-section {
  padding: 110px 0;
  background: var(--gris-bg);
  background-image: url('../img/fotos/caballo-y-torre-1920.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.services-section::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(245,247,250,.92);
  z-index: 0;
}
.services-section > * { position: relative; z-index: 1; }
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--azul), var(--rojo), var(--azul));
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1.5px solid var(--gris-borde);
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-azul, linear-gradient(90deg,var(--azul),var(--azul-claro)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-azul);
  transform: translateY(-8px);
}
.service-icon-wrap {
  width: 70px; height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
  transition: all var(--trans);
  background: rgba(26,58,107,.08);
  color: var(--azul);
}
.service-card:hover .service-icon-wrap {
  background: var(--azul);
  color: var(--blanco);
  transform: scale(1.1) rotate(-5deg);
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p { color: var(--texto-suave); font-size: .9rem; line-height: 1.8; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--azul);
  font-weight: 700;
  font-size: .85rem;
  margin-top: 20px;
  transition: gap var(--trans), color var(--trans);
}
.service-link:hover { gap: 10px; color: var(--rojo); }

/* ── ESTADÍSTICAS ────────────────────────────────────────────── */
.stats-section {
  padding: 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    rgba(6,13,26,.82),
    radial-gradient(ellipse at 0% 100%, rgba(26,58,107,.7) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(192,57,43,.4) 0%, transparent 50%);
}
.stats-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 70px 40px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
  transition: background var(--trans);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px; height: 3px;
  background: var(--rojo);
  border-radius: 2px;
  transition: transform var(--trans);
}
.stat-item:hover::after { transform: translateX(-50%) scaleX(1); }
.stat-icon {
  font-size: 2rem;
  color: var(--blanco);
  margin-bottom: 14px;
  display: block;
}
.stat-number {
  font-family: var(--font-h);
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.stat-label {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── EVENTOS ─────────────────────────────────────────────────── */
.events-section { padding: 110px 0; background: var(--blanco); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.event-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blanco);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gris-borde);
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-8px); border-color: transparent; }
.event-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--grad-navy);
  flex-shrink: 0;
}
.event-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--trans-lg);
}
.event-card:hover .event-img-wrap img { transform: scale(1.08); }
.event-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.1);
  background: linear-gradient(135deg, var(--navy) 0%, var(--azul) 100%);
}
.event-date-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--rojo);
  color: var(--blanco);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  font-weight: 700;
  font-size: .82rem;
  box-shadow: 0 4px 16px rgba(192,57,43,.5);
  line-height: 1.2;
}
.event-date-badge .day { font-size: 1.5rem; display: block; }
.event-featured-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--grad-rojo);
  color: var(--navy);
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.event-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.event-body h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.event-body p { color: var(--texto-suave); font-size: .88rem; line-height: 1.75; flex: 1; }
.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gris-borde);
}

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  padding: 110px 0;
  background: var(--grad-rojo);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/fotos/piezas-enfoque-selectivo-1920.jpg');
  background-size: cover;
  background-position: center;
  opacity: .12;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--blanco);
  margin-bottom: 16px;
}
.cta-section p { color: rgba(255,255,255,.88); font-size: 1.15rem; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FRASES CÉLEBRES ─────────────────────────────────────────── */
.quotes-section {
  padding: 110px 0;
  background: var(--navy-2);
  position: relative;
  overflow: hidden;
}
.quotes-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/fotos/pieza-negra-en-tablero-1920.jpg');
  background-size: cover;
  background-position: center;
  opacity: .08;
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative; z-index: 1;
}
.quote-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--trans);
}
.quote-card::before {
  content: '"';
  position: absolute;
  top: -10px; left: 16px;
  font-family: var(--font-h);
  font-size: 8rem;
  color: var(--blanco);
  opacity: .12;
  line-height: 1;
  pointer-events: none;
}
.quote-card:hover { background: rgba(255,255,255,.07); border-color: rgba(192,57,43,.2); transform: translateY(-4px); }
.quote-text {
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative; z-index: 1;
}
.quote-author::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--rojo);
  border-radius: 1px;
  flex-shrink: 0;
}
.quote-author span { color: var(--blanco); font-weight: 700; font-size: .85rem; }

/* ── MISIÓN / VISIÓN ─────────────────────────────────────────── */
.mv-section { padding: 110px 0; background: var(--blanco); }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv-card {
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  position: relative;
  overflow: hidden;
  color: var(--blanco);
}
.mv-card.navy  { background: var(--grad-navy); }
.mv-card.rojo  { background: var(--grad-rojo); }
.mv-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/fotos/piezas-enfoque-selectivo-800.jpg');
  background-size: cover;
  background-position: center;
  opacity: .1;
}
.mv-card-inner { position: relative; z-index: 1; }
.mv-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--blanco);
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.15);
}
.mv-card h3 { font-size: 1.8rem; color: var(--blanco); margin-bottom: 18px; }
.mv-card p { color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.85; }

/* ── FORMULARIOS ─────────────────────────────────────────────── */
.form-section { padding: 100px 0; background: var(--gris-bg); }
.form-wrap {
  background: var(--blanco);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 56px;
  max-width: 860px;
  margin: 0 auto;
  border: 1.5px solid var(--gris-borde);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--texto-medio);
  margin-bottom: 8px;
  font-size: .88rem;
}
.form-group label .req { color: var(--rojo); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gris-borde);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--texto);
  background: var(--blanco);
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.form-control:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(26,58,107,.1);
  background: #fafcff;
}
.form-control.error { border-color: var(--rojo); box-shadow: 0 0 0 4px rgba(192,57,43,.1); }
.form-control.valid { border-color: #16a34a; }
.form-error { color: var(--rojo); font-size: .78rem; margin-top: 5px; display: none; }
.form-error.visible { display: block; }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A3A6B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 42px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-weight: 500; color: var(--texto-suave);
  padding: 10px 18px;
  border: 2px solid var(--gris-borde);
  border-radius: 8px;
  transition: all var(--trans);
}
.radio-label:has(input:checked) { border-color: var(--azul); background: rgba(26,58,107,.06); color: var(--azul); }
.radio-label input[type="radio"] { accent-color: var(--azul); width: 16px; height: 16px; }

/* File input */
.file-zone {
  border: 2px dashed var(--gris-borde);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans);
  background: var(--gris-bg);
}
.file-zone:hover, .file-zone.drag-over { border-color: var(--azul); background: rgba(26,58,107,.04); }
.file-zone input[type="file"] { display: none; }
.file-zone i { font-size: 2.2rem; color: var(--azul); margin-bottom: 10px; display: block; }
.file-zone p { color: var(--texto-suave); font-size: .88rem; }
.file-zone .file-name { color: var(--azul); font-weight: 700; margin-top: 8px; font-size: .9rem; }

/* Stepper */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 50px;
  gap: 0;
}
.step-wrap { display: flex; flex-direction: column; align-items: center; }
.step-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gris-borde);
  color: var(--texto-suave);
  font-weight: 800;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--gris-borde);
  transition: all var(--trans);
  position: relative; z-index: 1;
}
.step-item.active  .step-circle { background: var(--azul); color: #fff; border-color: var(--azul); box-shadow: 0 4px 20px rgba(26,58,107,.4); }
.step-item.done    .step-circle { background: #16a34a; color: #fff; border-color: #16a34a; }
.step-label {
  font-size: .75rem; font-weight: 700;
  text-align: center;
  margin-top: 8px;
  color: var(--texto-suave);
  white-space: nowrap;
  letter-spacing: .3px;
}
.step-item.active .step-label { color: var(--azul); }
.step-item.done   .step-label { color: #16a34a; }
.step-line {
  flex: 1;
  height: 3px;
  background: var(--gris-borde);
  margin: 0;
  margin-top: 24px;
  transition: background var(--trans);
  min-width: 40px;
}
.step-line.done { background: #16a34a; }
.form-block { display: none; animation: fadeInUp .35s ease; }
.form-block.active { display: block; }
.fsection-title {
  font-family: var(--font-h);
  font-size: 1.3rem;
  color: var(--azul);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gris-borde);
  display: flex; align-items: center; gap: 10px;
}
.fsection-title i { color: var(--rojo); }
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  gap: 12px;
}

/* ── HERO PÁGINAS INTERNAS ───────────────────────────────────── */
.page-hero {
  padding: 140px 0 100px;
  background: var(--grad-hero);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,13,26,.82) 0%, rgba(15,36,71,.7) 50%, rgba(6,13,26,.85) 100%);
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--blanco);
  margin-bottom: 16px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--blanco);
}
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── CONTACTO ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-info-box {
  background: var(--grad-navy);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}
.contact-info-box::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/fotos/caballos-frente-a-frente-800.jpg');
  background-size: cover;
  background-position: center;
  opacity: .1;
}
.contact-info-box .inner { position: relative; z-index: 1; }
.ci-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--trans);
}
.ci-item:hover { background: rgba(255,255,255,.1); }
.ci-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(192,57,43,.15);
  border: 1px solid rgba(192,57,43,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.ci-text h5 { color: var(--blanco); font-size: .82rem; font-weight: 700; margin-bottom: 3px; }
.ci-text a, .ci-text p { color: rgba(255,255,255,.65); font-size: .88rem; }
.ci-text a:hover { color: var(--blanco); }
.social-row { display: flex; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  transition: all var(--trans);
  border: 1px solid rgba(255,255,255,.1);
}
.social-btn:hover { background: var(--azul-claro); color: #fff; transform: translateY(-3px); border-color: transparent; }
.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gris-borde);
}
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* ── ALERTAS ─────────────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  margin-bottom: 28px;
  animation: fadeInUp .4s ease;
  font-weight: 600;
}
.alert-ok  { background: #f0fdf4; color: #15803d; border: 1.5px solid #bbf7d0; }
.alert-err { background: #fff1f2; color: #be123c; border: 1.5px solid #fecdd3; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1.5px solid #bfdbfe; }

/* Éxito grande */
.success-card {
  text-align: center;
  padding: 70px 40px;
}
.success-icon-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  font-size: 2.8rem;
  color: #fff;
  box-shadow: 0 16px 40px rgba(22,163,74,.35);
  animation: bounceIn .6s cubic-bezier(.34,1.56,.64,1);
}
.success-card h2 { color: var(--azul); margin-bottom: 12px; }
.success-card p { color: var(--texto-suave); max-width: 440px; margin: 0 auto; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--rojo), var(--azul));
}
.footer-top { padding: 80px 0 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
}
.footer-logo-wrap img {
  height: 90px; width: auto;
}
.footer-desc { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.8; margin-bottom: 28px; }
.footer-social { display: flex; gap: 8px; }
.footer-social .social-btn {
  width: 38px; height: 38px;
  border-radius: 9px;
}
.footer-col h4 {
  font-family: var(--font-h);
  color: var(--blanco);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(192,57,43,.25);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  display: flex; align-items: center; gap: 8px;
  transition: all var(--trans);
}
.footer-links a i { font-size: .65rem; color: var(--rojo); transition: transform var(--trans); }
.footer-links a:hover { color: var(--blanco); padding-left: 4px; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.55);
  font-size: .88rem;
}
.footer-contact i { color: var(--blanco); width: 16px; flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--blanco); }
.footer-bottom {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom strong { color: rgba(255,255,255,.6); }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.btt {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--azul);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-azul);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--trans);
  z-index: 900;
  border: none;
  cursor: pointer;
}
.btt.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.btt:hover { background: var(--rojo); transform: translateY(-3px); }

/* ── ANIMACIONES ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.aos {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.aos.visible { opacity: 1; transform: translateY(0); }
.aos-left { transform: translateX(-28px); }
.aos-left.visible { transform: translateX(0); }
.aos-right { transform: translateX(28px); }
.aos-right.visible { transform: translateX(0); }

/* Fallback: si no hay JS o IntersectionObserver falla, mostrar todo */
@media (prefers-reduced-motion: reduce) {
  .aos, .aos-left, .aos-right { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:nth-child(1),.stat-item:nth-child(2) { border-right: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 900px) {
  .welcome-grid, .mv-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .events-grid, .quotes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: -100%;
    width: 290px;
    height: calc(100vh - var(--nav-h));
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
    gap: 4px;
    overflow-y: auto;
    transition: left var(--trans);
    z-index: 1000;
    box-shadow: 4px 0 30px rgba(0,0,0,.4);
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .nav-menu.open { left: 0; }
  .nav-link { padding: 13px 16px; border-radius: 10px; font-size: .95rem; }
  .nav-cta { margin-left: 0; margin-top: 4px; justify-content: center; }
  .nav-admin { margin-left: 0; justify-content: center; }
  .services-grid, .events-grid, .quotes-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .form-wrap { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .slide-actions { flex-direction: column; align-items: center; }
  .welcome-stat-row { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .btt { bottom: 20px; right: 16px; }
  .stepper { gap: 4px; }
  .step-line { min-width: 20px; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item:nth-child(odd) { border-right: none; }
  .mv-card { padding: 36px 24px; }
  .cta-section { padding: 80px 0; }
}
