:root {
  /* Paleta cromática extraída del logo */
  --primary: #22a9cf;        /* Azul Cielo / Turquesa de identidad */
  --primary-dark: #1682a3;   /* Azul profundo para contrastes */
  --primary-light: #e6f7fb;  /* Fondo suave turquesa */
  --accent-orange: #f16524;  /* Naranja cálido (CTA principal) */
  --accent-orange-hover: #d95318;
  --accent-yellow: #f8b824;  /* Amarillo Sol */
  --accent-green: #27b875;   /* Verde Esperanza */
  --accent-purple: #8c52ff;  /* Violeta */
  --accent-pink: #ed4f8a;    /* Rosa alegre */

  /* Colores neutros y fondos - TEMA CLARO */
  --bg-main: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.94);
  --text-main: #1e293b;
  --text-title: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --card-border: #e2e8f0;
  --input-bg: #ffffff;
  --modal-bg: #ffffff;
  --modal-header-bg: #f8fafc;

  /* Sombras modernas */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(22, 130, 163, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -8px rgba(0, 0, 0, 0.05);
  --shadow-orange: 0 10px 25px -5px rgba(241, 101, 36, 0.35);

  /* Bordes redondeados */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Tipografía */
  --font-base: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-comic: 'Comic Neue', cursive, sans-serif;
  --font-cursive: 'Satisfy', cursive, sans-serif;
  --font-accent: 'Satisfy', cursive, sans-serif;
}

/* =========================================================
   VARIABLES EN DARK MODE (Activadas vía selector :has o checkbox)
   ========================================================= */
body:has(#theme-switch:checked) {
  --bg-main: #0b1120;
  --bg-soft: #0f172a;
  --bg-card: #1e293b;
  --bg-header: rgba(11, 17, 32, 0.94);
  --text-main: #f1f5f9;
  --text-title: #ffffff;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.1);
  --input-bg: #1e293b;
  --modal-bg: #0f172a;
  --modal-header-bg: #1e293b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.6);
}

/* Interruptor de Dark Mode */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 6px;
}

#theme-switch {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 30px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  padding: 4px 7px;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border-light);
  transition: all 0.35s ease;
  user-select: none;
}

.theme-switch-label .switch-icon {
  font-size: 0.82rem;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.theme-switch-label .icon-sun { opacity: 1; }
.theme-switch-label .icon-moon { opacity: 0.4; }

.theme-switch-label .switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
}

body:has(#theme-switch:checked) .theme-switch-label {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.25);
}

body:has(#theme-switch:checked) .theme-switch-label .switch-thumb {
  transform: translateX(28px);
  background: var(--primary);
}

body:has(#theme-switch:checked) .theme-switch-label .icon-sun { opacity: 0.4; }
body:has(#theme-switch:checked) .theme-switch-label .icon-moon { opacity: 1; }

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.4s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Clases de contenedor y utilidades */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding-block: 85px;
  position: relative;
}

.section-soft {
  background-color: var(--bg-soft);
}

.text-center {
  text-align: center;
}

/* Encabezados de sección con Pinceladas Artísticas */
.section-brush-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.section-brush-img {
  max-width: min(290px, 85vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s ease;
}

.section-brush-img:hover {
  transform: scale(1.04) rotate(-0.5deg);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin-inline: auto;
}

.rainbow-divider {
  height: 4px;
  width: 70px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow), var(--accent-green), var(--primary), var(--accent-purple), var(--accent-pink));
  border-radius: var(--radius-full);
  margin: 18px auto 0;
}

/* Botones Modernos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-comic);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #ff7a3d);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-orange-hover), var(--accent-orange));
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(241, 101, 36, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: #fff;
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* =========================================================
   BARRA SUPERIOR Y HEADER (Glassmorphism & Sticky)
   ========================================================= */
.top-notice {
  background: linear-gradient(90deg, #176582, #1b8fb0);
  color: #fff;
  font-size: 0.85rem;
  padding: 7px 0;
  text-align: center;
}

.top-notice span {
  font-weight: 600;
  color: var(--accent-yellow);
}

.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-brand-img {
  max-width: 260px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero-brand-highlight {
  margin-bottom: 16px;
}

.hero-brand-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(34, 169, 207, 0.25));
  animation: heroLogoFloat 4s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.donar-banner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.donar-banner-img {
  max-width: min(320px, 85vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(237, 79, 138, 0.35));
  transition: transform 0.3s ease;
}

.donar-banner-img:hover {
  transform: scale(1.04) rotate(-1deg);
}

.brand-text {
  display: flex;
  align-items: center;
}

.brand-acronym {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
}

.brand-sigla,
.brand-ong {
  font-family: var(--font-base);
  font-size: 1.15rem;
  font-weight: 800;
  color: #176582;
  letter-spacing: 0.6px;
}

body:has(#theme-switch:checked) .brand-sigla,
body:has(#theme-switch:checked) .brand-ong {
  color: #38bdf8;
}

.brand-name {
  font-family: var(--font-cursive);
  font-size: 1.55rem;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0.5px;
  line-height: 1;
  padding-inline: 2px;
}

.brand-name .c-s1 { color: #fe6c04; }
.brand-name .c-o  { color: #ffc702; }
.brand-name .c-n  { color: #5bb72f; }
.brand-name .c-r  { color: #04acf2; }
.brand-name .c-i  { color: #654fbe; }
.brand-name .c-s2 { color: #c52ece; }
.brand-name .c-a  { color: #f878b8; }
.brand-name .c-s3 { color: #fd2a4d; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: #334155;
  position: relative;
  padding-block: 4px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

body:has(#theme-switch:checked) .nav-link {
  color: #cbd5e1; /* Gris claro de alto contraste (fácil lectura) */
}

body:has(#theme-switch:checked) .nav-link:hover {
  color: #38bdf8; /* Brillo celeste en hover */
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle, .nav-toggle-label {
  display: none;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  padding-block: 55px 75px;
  background: radial-gradient(circle at 10% 20%, rgba(34, 169, 207, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(241, 101, 36, 0.08) 0%, transparent 40%),
              var(--bg-main);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-brand-highlight {
  margin-bottom: 6px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  border: 1px solid rgba(34, 169, 207, 0.25);
  color: var(--primary-dark);
  font-family: var(--font-comic);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-orange);
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--text-title);
  margin-bottom: 12px;
}

.hero-title .highlight-cyan { color: var(--primary); }
.hero-title .highlight-red { color: #fb0788; }

.hero-title-sonrisas {
  font-family: var(--font-cursive);
  font-size: 1.15em;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0.5px;
  vertical-align: baseline;
  padding-inline: 2px;
}

.hero-title-sonrisas .c-s1 { color: #fe6c04; }
.hero-title-sonrisas .c-o  { color: #ffc702; }
.hero-title-sonrisas .c-n  { color: #5bb72f; }
.hero-title-sonrisas .c-r  { color: #04acf2; }
.hero-title-sonrisas .c-i  { color: #654fbe; }
.hero-title-sonrisas .c-s2 { color: #c52ece; }
.hero-title-sonrisas .c-a  { color: #f878b8; }
.hero-title-sonrisas .c-s3 { color: #fd2a4d; }

.hero-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.stat-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #176582;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Contenedor del Naipe de Cartas 3D Rotativo */
.hero-cards-deck {
  position: relative;
  width: 100%;
  height: 615px;
  perspective: 1400px;
  cursor: pointer;
}

.hero-card-item {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
  border: 7px solid #ffffff;
  background-color: var(--bg-card);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s ease;
  will-change: transform, opacity;
}

body:has(#theme-switch:checked) .hero-card-item {
  border-color: #1e293b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.hero-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hcard-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-comic);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-sm);
  z-index: 3;
}

/* =========================================================
   POSICIONAMIENTO NATURAL DE LAS CARTAS EN LA BARAJA
   ========================================================= */
/* Carta 1: La frontal activa */
.hero-card-item:nth-child(1) {
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  opacity: 1;
  z-index: 10;
}

/* Carta 2: Inmediatamente detrás con leve ángulo */
.hero-card-item:nth-child(2) {
  transform: translate3d(12px, 8px, 0) rotate(3deg) scale(0.97);
  opacity: 0.95;
  z-index: 9;
}

/* Carta 3: Tercer nivel */
.hero-card-item:nth-child(3) {
  transform: translate3d(-12px, 12px, 0) rotate(-3.5deg) scale(0.94);
  opacity: 0.85;
  z-index: 8;
}

/* Carta 4: Cuarto nivel */
.hero-card-item:nth-child(4) {
  transform: translate3d(16px, 16px, 0) rotate(5deg) scale(0.91);
  opacity: 0.7;
  z-index: 7;
}

/* Carta 5 y 6: Al fondo */
.hero-card-item:nth-child(5) {
  transform: translate3d(-16px, 18px, 0) rotate(-5.5deg) scale(0.88);
  opacity: 0.55;
  z-index: 6;
}

.hero-card-item:nth-child(n+6) {
  transform: translate3d(0, 20px, 0) rotate(0deg) scale(0.85);
  opacity: 0.35;
  z-index: 5;
}

/* Animación de salida: Fase 1 (se desliza a la derecha sin desvanecerse) */
.hero-card-item.card-exiting {
  transform: translate3d(105%, -15px, 0) rotate(14deg) scale(0.96) !important;
  opacity: 1 !important;
  z-index: 20 !important;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Fase 2: Pasando detrás de la baraja para entrar al fondo */
.hero-card-item.card-entering-back {
  transform: translate3d(105%, -15px, 0) rotate(14deg) scale(0.85) !important;
  opacity: 0.5 !important;
  z-index: 1 !important;
  pointer-events: none;
  transition: none !important;
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-light);
  animation: float 4s ease-in-out infinite;
  z-index: 30;
}

.card-top { top: -15px; left: -20px; animation-delay: 0s; }
.card-bottom { bottom: -28px; right: -15px; animation-delay: 2s; }

.floating-icon-img-wrap {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.floating-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.floating-card:hover .floating-icon-img-wrap {
  transform: scale(1.12) rotate(-3deg);
}

.floating-text strong {
  display: block;
  font-family: var(--font-comic);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.floating-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* =========================================================
   QUIÉNES SOMOS & VALORES
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.about-card-lead {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--primary);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card-lead:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card-lead h3 {
  font-family: var(--font-comic);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #176582;
  letter-spacing: 0.2px;
}

body:has(#theme-switch:checked) .about-card-lead h3 {
  color: #38bdf8;
}

.about-card-lead p {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.8;
}

.mission-vision-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mv-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mv-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.mv-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.badge-mission { 
  background: linear-gradient(135deg, #fdf2f8, #fce7f3); 
  border: 1px solid rgba(237, 79, 138, 0.2);
}
.badge-vision { 
  background: linear-gradient(135deg, #eff6ff, #dbeafe); 
  border: 1px solid rgba(34, 169, 207, 0.2);
}

.mv-header h4 {
  font-family: var(--font-comic);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.2px;
}

body:has(#theme-switch:checked) .mv-header h4 {
  color: #ffffff;
}

.mv-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.values-title { margin-bottom: 30px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  padding: 24px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--border-light);
  transition: background-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(34, 169, 207, 0.3);
}

.val-1:hover::before { background-color: var(--primary); }
.val-2:hover::before { background-color: var(--accent-orange); }
.val-3:hover::before { background-color: var(--accent-yellow); }
.val-4:hover::before { background-color: var(--accent-green); }
.val-5:hover::before { background-color: var(--accent-purple); }
.val-6:hover::before { background-color: var(--accent-pink); }

.value-illu-wrap {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.value-illu-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.value-card:hover .value-illu-img {
  transform: scale(1.08);
}

.value-card p { 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  line-height: 1.4;
  margin-top: 4px;
}

/* =========================================================
   PROGRAMAS Y ACCIONES
   ========================================================= */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.program-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34, 169, 207, 0.3);
}

.program-thumb {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.program-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-card:hover .program-thumb img {
  transform: scale(1.08);
}

.program-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-comic);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.tag-cyan { background-color: var(--primary); }
.tag-orange { background-color: var(--accent-orange); }
.tag-green { background-color: var(--accent-green); }
.tag-yellow { background-color: #eab308; }
.tag-purple { background-color: var(--accent-purple); }

.program-content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-brush-title {
  max-width: min(290px, 95%);
  margin-bottom: 4px;
}

.program-content p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.program-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* =========================================================================
   GALERÍA CON EFECTO #2: ABANICO 3D + ÁLBUMES COMPLETOS + VISOR HD INDIVIDUAL
   ========================================================================= */
.gallery-section-modern {
  background: var(--bg-soft);
  position: relative;
}

.deck-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  margin-top: 55px;
}

.deck-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 26px;
  padding: 26px 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.deck-card:hover {
  transform: translateY(-8px);
  border-color: rgba(241, 101, 36, 0.45);
  box-shadow: 0 20px 40px rgba(241, 101, 36, 0.15);
}

.deck-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 6px;
}

.deck-brush-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2px 0 10px;
}

.deck-brush-img {
  width: 100%;
  max-width: 270px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
  transition: transform 0.25s ease;
}

.deck-card:hover .deck-brush-img {
  transform: scale(1.04);
}

.photo-counter {
  background: var(--primary-light);
  border: 1px solid rgba(34, 169, 207, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  font-family: var(--font-comic);
}

.counter-orange {
  background: #fff7ed;
  border-color: rgba(249, 157, 69, 0.3);
  color: #ea580c;
}

/* Escenario del Abanico 3D */
.fandeck-stage {
  position: relative;
  height: 235px;
  margin: 12px auto 20px;
  perspective: 1200px;
  width: 100%;
  cursor: pointer;
}

.fandeck-img {
  position: absolute;
  top: 0;
  left: 16%;
  width: 68%;
  height: 205px;
  border-radius: 16px;
  border: 3px solid #ffffff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  transition: all 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reposo */
.deck-1 { z-index: 4; transform: rotate(0deg) translateY(0); }
.deck-2 { z-index: 3; transform: rotate(-5deg) translateY(4px); filter: brightness(0.92); }
.deck-3 { z-index: 2; transform: rotate(5deg) translateY(8px); filter: brightness(0.85); }
.deck-4 { z-index: 1; transform: rotate(-9deg) translateY(12px); filter: brightness(0.75); }

/* Apertura en Hover del abanico 3D */
.deck-card:hover .deck-1 {
  transform: translateY(-18px) scale(1.06);
  z-index: 5;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}
.deck-card:hover .deck-2 {
  transform: translateX(-55px) rotate(-15deg) translateY(-6px);
  filter: brightness(1);
}
.deck-card:hover .deck-3 {
  transform: translateX(55px) rotate(15deg) translateY(-6px);
  filter: brightness(1);
}
.deck-card:hover .deck-4 {
  transform: translateX(-95px) rotate(-26deg) translateY(10px) scale(0.94);
  filter: brightness(0.95);
}

.deck-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.deck-btn-open {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-comic);
  letter-spacing: 0.3px;
  padding: 12px 18px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

/* 1. Comedor Comunitario: Naranja Cálido */
.btn-deck-orange {
  background: linear-gradient(135deg, #f99d45, #ea580c);
  box-shadow: 0 8px 18px rgba(249, 157, 69, 0.35);
}
.btn-deck-orange:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.45);
}

/* 2. Clases y Manualidades: Fucsia / Rosa Creativo */
.btn-deck-pink {
  background: linear-gradient(135deg, #fd2b8b, #db2777);
  box-shadow: 0 8px 18px rgba(253, 43, 139, 0.35);
}
.btn-deck-pink:hover {
  background: linear-gradient(135deg, #db2777, #be185d);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(219, 39, 119, 0.45);
}

/* 3. Día del Niño: Amarillo Sol Dorado */
.btn-deck-yellow {
  background: linear-gradient(135deg, #ffcf48, #f59e0b);
  color: #144272 !important;
  box-shadow: 0 8px 18px rgba(255, 207, 72, 0.4);
}
.btn-deck-yellow:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.45);
}

/* 4. Volvemos a las Calles: Turquesa / Celeste Institucional */
.btn-deck-cyan {
  background: linear-gradient(135deg, #22a9cf, #0284c7);
  box-shadow: 0 8px 18px rgba(34, 169, 207, 0.35);
}
.btn-deck-cyan:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.45);
}

/* Insignias de conteo a juego con cada tarjeta */
.counter-pink {
  background: #fdf2f8;
  border-color: rgba(253, 43, 139, 0.3);
  color: #db2777;
}
.counter-yellow {
  background: #fefce8;
  border-color: rgba(245, 158, 11, 0.3);
  color: #b45309;
}
.counter-cyan {
  background: #ecfeff;
  border-color: rgba(34, 169, 207, 0.3);
  color: #0284c7;
}

/* =========================================================
   NIVEL 1 DE ZOOM: VISORES DE ÁLBUM COMPLETO (:target CSS Puro)
   ========================================================= */
.album-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.album-modal-overlay:target {
  display: flex;
}

.album-modal-container {
  background: var(--modal-bg);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  width: min(1100px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4);
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head-bar {
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--modal-header-bg);
}

.modal-head-info h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-title);
}

.modal-head-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-btn-close {
  text-decoration: none;
  width: 44px;
  height: 44px;
  background: #e2e8f0;
  color: #334155;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 400;
  transition: all 0.25s ease;
}

.modal-btn-close:hover {
  background: var(--accent-orange);
  color: #fff;
  transform: rotate(90deg);
}

.modal-photos-masonry {
  padding: 28px 30px 40px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.modal-photos-masonry::-webkit-scrollbar { width: 8px; }
.modal-photos-masonry::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.photo-tile {
  height: 185px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-tile:hover img {
  transform: scale(1.1);
}

.photo-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-tile:hover .photo-tile-overlay {
  opacity: 1;
}

.photo-tile-overlay span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =========================================================
   NIVEL 2 DE ZOOM: FOTO INDIVIDUAL EN PANTALLA COMPLETA AISLADA
   ========================================================= */
.single-photo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.single-photo-overlay:target {
  display: flex;
}

.single-photo-frame {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomInHD 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInHD {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.single-photo-frame img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.single-photo-caption {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-back-to-album {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-back-to-album:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.single-photo-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.single-photo-close:hover {
  background: var(--accent-orange);
  transform: scale(1.1);
}

/* =========================================================
   CÓMO APOYAR / DONACIONES
   ========================================================= */
.support-section {
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 26px;
  margin-top: 50px;
}

/* Tarjeta 1: Ocupa todo el ancho superior (100%) */
.support-card-kind {
  grid-column: 1 / -1;
}

.support-kind-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.support-kind-bottom .account-box {
  margin-bottom: 0;
  flex: 1;
  min-width: 280px;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.support-card.featured {
  border: 2px solid var(--accent-orange);
}

.support-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.support-badge-top {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.support-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.support-card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
}

/* =========================================================
   TÍTULOS ESTILO PINCELADA CON IMÁGENES REALES
   ========================================================= */
.card-brush-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.card-brush-img {
  max-width: min(310px, 92%);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
  transition: transform 0.25s ease;
}

.support-card:hover .card-brush-img {
  transform: scale(1.02);
}

.support-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.account-box {
  background-color: var(--bg-soft);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.account-box strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

/* =========================================================
   ELEMENTOS DE DONACIÓN EN ESPECIE (Basado en Flyer 2)
   ========================================================= */
.que-donar-wrap {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 16px;
}

.que-donar-img {
  max-width: min(340px, 90%);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(248, 184, 36, 0.35));
}

.donation-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0 24px;
}

@media (max-width: 900px) {
  .donation-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .donation-items-grid {
    grid-template-columns: 1fr;
  }
}

.donation-item {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.donation-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.donation-item-illu {
  width: 100%;
  max-width: 130px;
  margin-bottom: 8px;
}

.donation-illu-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.donation-item:hover .donation-illu-img {
  transform: scale(1.06);
}

.donation-item p {
  font-size: 0.8rem !important;
  color: var(--text-muted);
  line-height: 1.35 !important;
  margin-bottom: 0 !important;
}

/* Clases Utilitarias para Tipografías de Flyer 2 */
.font-comic {
  font-family: var(--font-comic);
}

.font-cursive {
  font-family: var(--font-cursive);
}

.font-cursive-quote {
  font-family: var(--font-cursive);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--primary-dark);
}

body:has(#theme-switch:checked) .font-cursive-quote {
  color: #38bdf8;
}

/* Barra de 4 Pilares del Flyer 2 */
.flyer-values-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 55px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-items: center;
}

.flyer-val-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  transition: transform 0.3s ease;
}

.flyer-val-card:hover {
  transform: translateY(-4px) scale(1.04);
}

.flyer-pillar-img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
}

body:has(#theme-switch:checked) .flyer-pillar-img {
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.1));
}
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 55px;
  padding: 20px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.flyer-val-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-title);
}

.fval-icon {
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .donation-items-grid {
    grid-template-columns: 1fr;
  }
  .flyer-values-bar {
    border-radius: var(--radius-md);
    gap: 16px;
    justify-content: flex-start;
  }
}

/* =========================================================
   CONTACTO Y FORMULARIO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.contact-info-card h4 {
  font-family: var(--font-comic);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #176582;
  letter-spacing: 0.2px;
}

body:has(#theme-switch:checked) .contact-info-card h4 {
  color: #38bdf8;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-img-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

.contact-item:hover .contact-icon-img-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.contact-details strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-title);
}

.contact-details span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.contact-form .btn-primary {
  font-family: var(--font-comic);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 14px 28px;
  box-shadow: 0 10px 25px -4px rgba(241, 101, 36, 0.4);
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px -4px rgba(241, 101, 36, 0.55);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--input-bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(34, 169, 207, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background-color: #0f172a;
  color: #e2e8f0;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 14px;
}

.footer-col h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #64748b;
}

.footer-bottom a {
  color: var(--primary);
}

/* =========================================================
   RESPONSIVE DESIGN (CSS PURO)
   ========================================================= */
@media (max-width: 1180px) {
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .nav-menu .btn-primary {
    padding: 9px 18px;
    font-size: 0.92rem;
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-actions, .hero-stats { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Menú Móvil / Tablet activado hasta 1024px */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 6px;
  }

  .nav-toggle-label span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #176582;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  body:has(#theme-switch:checked) .nav-toggle-label span {
    background-color: #38bdf8;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
    border-bottom: 2px solid var(--primary);
  }

  .nav-toggle:checked ~ .nav-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 768px) {
  .section { padding-block: 60px; }

  .card-top, .card-bottom { display: none; }
  .fandeck-img { left: 10%; width: 80%; }
  .modal-photos-masonry { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding: 16px; }
  .photo-tile { height: 130px; }
  .single-photo-close { top: -10px; right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
