/* ==================== VARIABLES ==================== */
:root {
  --blue: #0081C8;
  --blue-dark: #005a94;
  --blue-deep: #063a5c;
  --yellow: #FCB131;
  --red: #EE334E;
  --green: #00A651;
  --gold: #cba42c;
  --black: #0c1220;
  --gray: #4a5568;
  --light: #f4f8fb;
  --cream: #fff8ec;
  --mint: #edf9f2;
  --blush: #fff1f3;
  --sky: #e8f5fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(6,58,92,0.08);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 2000;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--red) 75% 100%);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,129,200,0.08);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img {
  height: 56px;
  width: auto;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ==================== HERO SLIDER ==================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slider {
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content {
  max-width: 800px;
  padding: 0 24px;
}
.slide h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.slide p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 32px;
  opacity: 0.95;
}
.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--yellow);
  transform: scale(1.3);
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: rgba(255,255,255,0.3); }
.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }

/* Animaciones del hero */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--yellow) 0%, #ffc85a 100%);
  color: var(--black);
  box-shadow: 0 8px 20px rgba(252,177,49,0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffc44a, var(--yellow));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(252,177,49,0.45);
}
.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0,129,200,0.04);
}
.btn-outline:hover {
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 22px rgba(0,129,200,0.3);
}
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ==================== SECTIONS ==================== */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header.light { color: white; }
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-header.light .section-tag { color: var(--yellow); }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.divider {
  width: 88px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--green), var(--red));
  margin: 0 auto 20px;
  border-radius: 4px;
}
.divider.light {
  background: linear-gradient(90deg, var(--yellow), #fff, var(--green));
}
.section-desc {
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
}

/* ==================== ABOUT ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .lead {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--black);
}
.about-text p {
  margin-bottom: 18px;
  color: var(--gray);
}
.about-section {
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(0,129,200,0.07), transparent 60%),
    radial-gradient(700px 240px at 100% 100%, rgba(252,177,49,0.1), transparent 55%),
    var(--white);
}
.about-card {
  background: linear-gradient(180deg, #fff, var(--sky));
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,129,200,0.08);
}
.stat {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.stat:nth-child(1) .stat-number { color: var(--blue); }
.stat:nth-child(2) .stat-number { color: var(--green); }
.stat:nth-child(3) .stat-number { color: var(--red); }
.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== VALUES ==================== */
.values-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(252,177,49,0.18), transparent 32%),
    radial-gradient(circle at 88% 80%, rgba(238,51,78,0.16), transparent 30%),
    linear-gradient(145deg, #063a5c 0%, #005a94 48%, #0078b8 100%);
  color: white;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  perspective: 1400px;
}
.value-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, opacity 0.7s ease;
  border: 1px solid rgba(255,255,255,0.2);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.value-card.is-tilting {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 24px 50px rgba(0,0,0,0.2);
}
.value-icon {
  --icon-color: #0081C8;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  background: var(--icon-color);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--icon-color) 45%, transparent);
  transform: translateZ(30px);
}
.icon-emoji {
  font-size: 2rem;
  line-height: 1;
  position: relative;
  z-index: 2;
  display: block;
  animation: emojiFloat 2.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.18));
}
.value-card:nth-child(2) .icon-emoji { animation-delay: 0.3s; }
.value-card:nth-child(3) .icon-emoji { animation-delay: 0.6s; }
.value-card:nth-child(4) .icon-emoji { animation-delay: 0.9s; }
.icon-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--icon-color);
  opacity: 0.45;
  animation: iconPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.icon-ring.delay {
  animation-delay: 1.2s;
}
.value-card:hover .icon-emoji {
  animation: emojiPop 0.7s ease-in-out infinite;
}
.value-card:hover .value-icon {
  transform: translateZ(42px) scale(1.08);
}
.value-card:hover .icon-ring {
  animation-duration: 1.2s;
}

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-5px) rotate(-8deg) scale(1.06); }
  50% { transform: translateY(-2px) rotate(6deg) scale(1.02); }
  75% { transform: translateY(-6px) rotate(-4deg) scale(1.08); }
}
@keyframes emojiPop {
  0%, 100% { transform: translateY(0) rotate(-6deg) scale(1.08); }
  50% { transform: translateY(-8px) rotate(8deg) scale(1.18); }
}
@keyframes iconPulse {
  0% { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.35); opacity: 0; }
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.value-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* ==================== EVENTS ==================== */
.events-section {
  background:
    radial-gradient(700px 220px at 90% 0%, rgba(0,166,81,0.08), transparent 50%),
    var(--cream);
}
.events-section .event-card:nth-child(1) { border-top: 4px solid var(--yellow); }
.events-section .event-card:nth-child(2) { border-top: 4px solid var(--green); }
.events-section .event-card:nth-child(2) .event-date { color: var(--green); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  perspective: 1400px;
}
.event-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.4s ease, opacity 0.7s ease;
  background: white;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.event-card.is-tilting {
  box-shadow: 0 24px 55px rgba(0,0,0,0.16);
}
.event-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.event-content {
  padding: 28px;
}
.event-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event-content h3 {
  font-size: 1.25rem;
  margin: 8px 0 12px;
  font-weight: 700;
}
.event-content p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ==================== CTA ==================== */
.cta-section {
  background:
    radial-gradient(circle at 20% 50%, rgba(0,166,81,0.25), transparent 40%),
    radial-gradient(circle at 85% 40%, rgba(252,177,49,0.2), transparent 38%),
    linear-gradient(135deg, #0c1220 0%, #12324a 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.cta-section p {
  opacity: 0.8;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0a0a0a;
  color: #ccc;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  height: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 0.95rem;
  opacity: 0.7;
  max-width: 280px;
}
.footer-links h4, .footer-contact h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-links a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--yellow); }
.footer-contact p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}
.motto {
  font-style: italic;
  color: var(--yellow);
}

/* ==================== PAGE HERO (Quiénes somos) ==================== */
.page-hero {
  background:
    radial-gradient(circle at 15% 30%, rgba(252,177,49,0.28), transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(238,51,78,0.22), transparent 32%),
    linear-gradient(135deg, #063a5c, #0081C8);
  color: white;
  padding: 160px 0 80px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 12px 0;
}
.page-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
}

/* ==================== ABOUT INTRO ==================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-intro-text h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--blue);
}
.about-intro-text p {
  color: var(--gray);
  margin-bottom: 16px;
}
.about-intro-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 380px;
}
.about-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.about-intro-image:hover img {
  transform: scale(1.05);
}

/* ==================== TEAM ==================== */
.team-section {
  background:
    radial-gradient(600px 200px at 0% 100%, rgba(238,51,78,0.06), transparent 50%),
    var(--sky);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1400px;
}
.member-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-bottom: 4px solid var(--blue);
}
.member-card:nth-child(2) { border-bottom-color: var(--yellow); }
.member-card:nth-child(3) { border-bottom-color: var(--green); }
.member-card:nth-child(4) { border-bottom-color: var(--red); }
.member-card:nth-child(5) { border-bottom-color: var(--blue); }
.member-card:nth-child(6) { border-bottom-color: var(--yellow); }
.member-card:nth-child(2) .member-role { color: #b57a08; background: rgba(252,177,49,0.16); }
.member-card:nth-child(3) .member-role { color: var(--green); background: rgba(0,166,81,0.12); }
.member-card:nth-child(4) .member-role { color: var(--red); background: rgba(238,51,78,0.1); }
  cursor: pointer;
  transition: box-shadow 0.4s ease, opacity 0.7s ease;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.member-card.is-tilting {
  box-shadow: 0 28px 70px rgba(0,129,200,0.22);
}
.member-photo {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #e8eef5;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease, filter 0.4s ease;
  transform: translateZ(0);
}
.member-card.is-tilting .member-photo img {
  transform: scale(1.1) translateZ(40px);
  filter: brightness(0.88);
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--blue);
  background: linear-gradient(145deg, #e8f4fc 0%, #d0e8f7 100%);
  transition: transform 0.5s ease;
}
.member-card:hover .photo-placeholder {
  transform: scale(1.05);
}
.photo-placeholder.large {
  font-size: 4.5rem;
  height: 280px;
  border-radius: 0;
}
.member-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,129,200,0.92) 0%, rgba(0,129,200,0.35) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.member-overlay span {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.18);
  padding: 10px 22px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  transform: translateY(18px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.member-card:hover .member-overlay {
  opacity: 1;
}
.member-card:hover .member-overlay span {
  transform: translateY(0);
}
.member-info {
  padding: 22px 18px;
  text-align: center;
  background: white;
  position: relative;
  z-index: 2;
}
.member-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.member-card:hover .member-info h3 {
  color: var(--blue);
}
.member-role {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0,129,200,0.09);
  border-radius: 20px;
}

/* Shine 3D */
.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.08) 28%, transparent 58%);
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.25s ease;
}
.member-card.is-tilting .card-shine,
.value-card.is-tilting .card-shine,
.event-card.is-tilting .card-shine {
  opacity: 1;
}

@media (hover: none) {
  .member-card:hover,
  .value-card:hover,
  .event-card:hover {
    transform: none;
  }
}

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 24px;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
  overflow: hidden;
}
.modal.active .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}
.modal-close:hover { background: var(--red); color: white; }
.modal-body {
  display: flex;
  flex-direction: column;
}
.modal-photo {
  height: 280px;
  overflow: hidden;
  background: #e8eef5;
}
.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.modal-info {
  padding: 28px;
}
.modal-info h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.modal-role {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal-info p {
  color: var(--gray);
  line-height: 1.7;
}

/* ==================== COPA VALORES / EVENTOS PAGE ==================== */
.copa-featured { background: var(--sky); }
.copa-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.copa-copy .lead { font-size: 1.15rem; margin: 12px 0 16px; }
.copa-quote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: white;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}
.copa-quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--blue); font-size: 0.85rem; }
.video-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-card img { width: 100%; height: 320px; object-fit: cover; }
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}
.video-card:hover .play-btn { transform: scale(1.08); }
.copa-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-pill {
  background: white;
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--blue);
}
.stat-pill:nth-child(2) { border-bottom-color: var(--yellow); }
.stat-pill:nth-child(3) { border-bottom-color: var(--green); }
.stat-pill:nth-child(4) { border-bottom-color: var(--red); }
.stat-pill strong { display: block; font-size: 2rem; font-weight: 900; color: var(--blue-deep); }
.stat-pill span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gal-item {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  height: 200px;
  background: #ddd;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gal-item:hover img { transform: scale(1.08); }
.event-filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  border: 2px solid var(--blue);
  background: white;
  color: var(--blue);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--blue); color: white; }
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: white; font-size: 1.6rem; cursor: pointer;
}
@media (max-width: 900px) {
  .copa-layout, .copa-stats, .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .copa-layout, .copa-stats, .gallery-grid { grid-template-columns: 1fr; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .about-grid, .about-intro, .footer-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .slider-btn { display: none; }
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .header-content { height: 70px; }
  .logo img { height: 46px; }
  .page-hero { padding: 130px 0 60px; }
}

/* ==================== COLOR REFRESH ==================== */
body::before { height: 6px; }
.section-tag {
  background: linear-gradient(90deg, rgba(0,129,200,0.12), rgba(0,166,81,0.12));
  color: var(--blue-dark);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 1.6px;
}
.section-header.light .section-tag {
  background: rgba(255,255,255,0.16);
  color: var(--yellow);
}
.page-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(252,177,49,0.35), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(0,166,81,0.28), transparent 32%),
    radial-gradient(circle at 70% 90%, rgba(238,51,78,0.22), transparent 34%),
    linear-gradient(135deg, #063a5c, #0081C8 58%, #00A651);
}
.slide h1 { text-shadow: 0 6px 28px rgba(0,0,0,0.35); }
.slide p { text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.about-section {
  background:
    radial-gradient(800px 260px at 0% 0%, rgba(0,129,200,0.12), transparent 60%),
    radial-gradient(700px 240px at 100% 80%, rgba(252,177,49,0.16), transparent 55%),
    radial-gradient(500px 200px at 40% 100%, rgba(0,166,81,0.08), transparent 50%),
    #fff;
}
.team-section {
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(238,51,78,0.08), transparent 50%),
    radial-gradient(500px 180px at 0% 100%, rgba(252,177,49,0.12), transparent 50%),
    var(--sky);
}
.footer {
  background: linear-gradient(180deg, #063a5c 0%, #0a0a0a 100%);
}
.footer-bottom { border-top-color: rgba(252,177,49,0.25); }
.nav-link.active { color: var(--green); }
.header { border-bottom: 1px solid rgba(0,166,81,0.12); }

/* Values page + softer palette */
.valores-intro { background: #f7faf8; }
.values-section-soft {
  background:
    linear-gradient(160deg, #0f4a6e 0%, #1a6a96 55%, #1d7a62 100%) !important;
}
.value-detalle {
  display: none;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.95;
}
.value-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
}
.value-card.open .value-detalle { display: block; }
.value-card.open .value-more { display: none; }
.value-card { cursor: pointer; }
.page-hero {
  background:
    radial-gradient(circle at 15% 25%, rgba(252,177,49,0.18), transparent 38%),
    radial-gradient(circle at 88% 80%, rgba(0,166,81,0.14), transparent 36%),
    linear-gradient(135deg, #0b3d5c, #0e6aa3) !important;
}
.values-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(252,177,49,0.1), transparent 32%),
    linear-gradient(145deg, #0b3d5c 0%, #0e5f8a 55%, #0f6b7a 100%);
}

.page-hero .section-tag,
.section-header.light .section-tag {
  background: #FCB131;
  color: #0c1220;
  border: none;
}
.page-hero h1,
.page-hero p {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.25);
}

.mv-section { background: #fff; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv-card {
  background: var(--sky);
  border-radius: 16px;
  padding: 32px 28px;
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow);
}
.mv-card.vision {
  background: var(--cream);
  border-top-color: var(--yellow);
}
.mv-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.mv-card.vision .mv-label { color: #9a6b08; }
.mv-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.mv-card p { color: var(--gray); }
@media (max-width: 800px) {
  .mv-grid { grid-template-columns: 1fr; }
}
a.event-card { color: inherit; display: flex; flex-direction: column; }

.sports-ticker {
  background: #0b3d5c;
  color: #fff;
  overflow: hidden;
  border-top: 3px solid var(--yellow);
  border-bottom: 3px solid var(--green);
}
.ticker-track {
  display: flex;
  gap: 48px;
  padding: 12px 0;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.ticker-track span { color: #fff; }
.ticker-track span:nth-child(odd) { color: var(--yellow); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 12px;
}
.mosaic-item {
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}
.mosaic-item.tall { grid-row: 1 / 3; }
.mosaic-item.wide { grid-column: 2 / 4; }
.mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.mosaic-item:hover img { transform: scale(1.08); }
.score-section { background: #0b3d5c; padding: 40px 0; }
.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  color: #fff;
  text-align: center;
}
.score-item b {
  display: block;
  font-size: 2.4rem;
  color: var(--yellow);
  font-weight: 900;
}
.score-item span { font-size: 0.85rem; opacity: .9; }
.hero { min-height: 88vh; }
@media (max-width: 800px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .mosaic-item.tall { grid-row: auto; }
  .mosaic-item.wide { grid-column: 1 / 3; }
  .scoreboard { grid-template-columns: 1fr 1fr; }
}

.form-wrap { max-width: 1080px; }
.sponsor-list { margin: 16px 0 0; padding-left: 18px; color: var(--gray); }
.sponsor-list li { margin: 8px 0; }
.sponsor-form {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.sponsor-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-deep);
}
.sponsor-form input,
.sponsor-form select,
.sponsor-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #d5e3ee;
  border-radius: 10px;
  font-weight: 400;
  color: var(--black);
}
.sponsor-form button { margin-top: 6px; border: 0; cursor: pointer; }
.form-note { font-size: 0.78rem; color: var(--gray); font-weight: 400; }

/* Logo que sigue el mouse */
@media (pointer: fine) {
  html, body, a, button, input, select, textarea {
    cursor: none !important;
  }
}
.logo-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 99999;
  background: url("logo-panathlon.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
@media (pointer: coarse) {
  .logo-cursor { display: none; }
}
