﻿/* ============================================================
   CORPORACIÓN SURCOS — styles.css v2
   ============================================================ */

/* ── Variables & Reset ─────────────────────────────────────── */
:root {
  --blue: #1f60be;
  --blue-d: #0d3d85;
  --blue-l: #e8f1fd;
  --warm: #f97316;
  --green: #059669;
  --ink: #0f1923;
  --ink-2: #3d4f63;
  --ink-3: #94a3b8;
  --bg: #f7fafd;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  opacity: 1;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Crimson Pro', serif;
}

.syne {
  font-family: 'Syne', sans-serif;
}

/* ── Navegación ────────────────────────────────────────────── */
#main-nav {
  transition: all 0.4s ease;
}

#main-nav.scrolled {
  background: rgba(15, 25, 35, 0.97) !important;
  backdrop-filter: blur(16px);
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, .25);
}

/* Submenú Más */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 1rem;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  border: 1px solid #e4ecf4;
  opacity: 1;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s ease;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: .75rem;
  font-size: 12px;
  font-weight: 600;
  color: #3d4f63;
  text-decoration: none;
  transition: all .2s;
}

.nav-dropdown-menu a:hover {
  background: var(--blue-l);
  color: var(--blue);
}

.nav-dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--blue);
  font-size: 13px;
}

/* ── Hero Principal ────────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #0d1f35 0%, #1a3a6b 50%, #0d2a50 100%);
  position: relative;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .5;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.b1 {
  width: 700px;
  height: 700px;
  background: rgba(31, 96, 190, .25);
  top: -200px;
  right: -150px;
  z-index: 1;
  animation: drift 14s ease-in-out infinite;
}

.b2 {
  width: 400px;
  height: 400px;
  background: rgba(5, 150, 105, .12);
  bottom: -100px;
  left: 50px;
  z-index: 1;
  animation: drift 10s ease-in-out infinite reverse;
}

.b3 {
  width: 250px;
  height: 250px;
  background: rgba(249, 115, 22, .08);
  top: 40%;
  left: 35%;
  z-index: 1;
  animation: drift 8s ease-in-out infinite 2s;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(30px, -20px) scale(1.05)
  }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: #fff;
  font-style: italic;
}

.hero-title .accent {
  color: #60a5fa;
  font-style: normal;
  font-family: 'Syne', sans-serif;
}

.hero-stat-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px 24px;
  transition: all .3s ease;
}

.hero-stat-card:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-4px);
}

.hero-img-frame {
  border-radius: 2.5rem;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
  position: relative;
}

.hero-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 96, 190, .15) 0%, transparent 60%);
  pointer-events: none;
}

.floating-badge {
  background: white;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

/* ── Hero Páginas Internas ─────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d1f35 0%, #1a3a6b 55%, #0d2a50 100%);
  position: relative;
  overflow: hidden;
}

.page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #93c5fd;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* ── Etiquetas Sección ─────────────────────────────────────── */
.sec-label {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 5px 14px;
  background: var(--blue-l);
  border-radius: 100px;
  margin-bottom: 14px;
}

.sec-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--ink);
  line-height: 1.15;
}

/* ── Cards Valores / Líneas ───────────────────────────────── */
.value-card {
  position: relative;
  overflow: hidden;
  padding: 36px 30px;
  border-radius: 2rem;
  background: white;
  border: 1.5px solid #e8f1fd;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  opacity: 0;
  transition: opacity .4s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(31, 96, 190, .2);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card>* {
  position: relative;
  z-index: 1;
}

.value-card:hover .vc-icon {
  background: rgba(255, 255, 255, .15);
}

.value-card:hover .vc-title {
  color: white;
}

.value-card:hover .vc-text {
  color: rgba(255, 255, 255, .75);
}

.value-card:hover .vc-number {
  color: rgba(255, 255, 255, .08);
}

.vc-number {
  position: absolute;
  bottom: -10px;
  right: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: rgba(31, 96, 190, .05);
  line-height: 1;
  z-index: 0;
  transition: color .4s;
  pointer-events: none;
}

/* ── Líneas de Trabajo ─────────────────────────────────────── */
.linea-card {
  border-radius: 1.75rem;
  padding: 32px;
  background: var(--bg);
  border: 1.5px solid #e4ecf4;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.linea-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.linea-card:hover {
  background: white;
  box-shadow: 0 20px 50px rgba(31, 96, 190, .12);
  transform: translateY(-6px);
}

.linea-card:hover::after {
  transform: scaleX(1);
}

/* ── Hexágonos Población ───────────────────────────────────── */
.pop-hex {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  width: 100px;
  height: 115px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  transition: all .3s ease;
}

.pop-hex:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* ── Carrusel Testimonios ──────────────────────────────────── */
.testi-track {
  display: flex;
  gap: 24px;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.testi-card {
  min-width: 340px;
  max-width: 340px;
  background: white;
  border-radius: 2rem;
  padding: 32px;
  border: 1.5px solid #e4ecf4;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .05);
  flex-shrink: 0;
}

.quote-mark {
  font-family: 'Crimson Pro', serif;
  font-size: 80px;
  line-height: .7;
  color: var(--blue);
  opacity: .15;
  float: left;
  margin-right: 4px;
}

.star {
  color: #f59e0b;
  font-size: 12px;
}

.testi-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e4ecf4;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.testi-nav:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e4ecf4;
  cursor: pointer;
  transition: all .3s;
}

.testi-dot.active {
  width: 24px;
  background: var(--blue);
}

/* ── Aliados ───────────────────────────────────────────────── */
.ally-logo {
  background: white;
  border: 1.5px solid #e4ecf4;
  border-radius: 1.5rem;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  transition: all .3s ease;
  cursor: default;
}

.ally-logo:hover {
  box-shadow: 0 16px 40px rgba(31, 96, 190, .12);
  transform: translateY(-4px);
  border-color: var(--blue-l);
}

.ally-logo img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
}

.ally-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
}

/* ── Redes Sociales ─────────────────────────────────────────── */
.red-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 1rem;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.red-social-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.red-social-btn i, .red-social-btn span {
  color: white;
}

/* ── Video ─────────────────────────────────────────────────── */
.video-wrap {
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .25);
}

.video-placeholder {
  background: linear-gradient(135deg, #0d1f35 0%, #1a3a6b 100%);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
  cursor: pointer;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .4)
  }

  50% {
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .0)
  }
}

.play-btn:hover {
  transform: scale(1.12);
}

.video-frame {
  display: none;
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* ── CTA Strip ─────────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E'); }


      /* ── Donación Cards ────────────────────────────────────────── */
      .don-card {
      background:white; border-radius:2rem; padding:32px; border:2px solid transparent; transition:all .3s ease; text-align:center;
    }

    .don-card:hover {
      border-color:var(--blue); transform:translateY(-4px); box-shadow:0 20px 50px rgba(31, 96, 190, .12);
    }

    .metodo-card {
      background:white; border-radius:2rem; border:1.5px solid #e4ecf4; padding:32px; transition:all .4s cubic-bezier(.16, 1, .3, 1); cursor:pointer; position:relative; overflow:hidden;
    }

    .metodo-card::after {
      content:''; position:absolute; bottom:0; left:0; width:100%; height:3px; transform:scaleX(0); transform-origin:left; transition:transform .4s ease;
    }

    .metodo-card:hover {
      box-shadow:0 24px 60px rgba(31, 96, 190, .12); transform:translateY(-5px);
    }

    .metodo-card:hover::after {
      transform:scaleX(1);
    }

    .metodo-card.nequi::after {
      background:linear-gradient(90deg, #7c3aed, #a78bfa);
    }

    .metodo-card.daviplata::after {
      background:linear-gradient(90deg, #ea580c, #fb923c);
    }

    .metodo-card.bancolombia::after {
      background:linear-gradient(90deg, #d97706, #fbbf24);
    }

    .metodo-card.whatsapp::after {
      background:linear-gradient(90deg, #059669, #34d399);
    }

    .copy-btn {
      background:var(--blue-l); color:var(--blue); border:none; border-radius:.75rem; padding:6px 14px; font-size:11px; font-weight:700; cursor:pointer; transition:all .2s; display:inline-flex; align-items:center; gap:5px;
    }

    .copy-btn:hover {
      background:var(--blue); color:white;
    }

    .copy-btn.copied {
      background:#d1fae5; color:#065f46;
    }

    /* ── Galería ────────────────────────────────────────────────── */
    .gal-item {
      position:relative; border-radius:1.25rem; overflow:hidden; aspect-ratio:1; cursor:pointer;
    }

    .gal-item img {
      width:100%; height:100%; object-fit:cover; transition:transform .4s ease;
    }

    .gal-item:hover img {
      transform:scale(1.08);
    }

    .gal-overlay {
      position:absolute; inset:0; background:rgba(13, 31, 53, .7);
      display:flex; flex-direction:column; align-items:center; justify-content:center;
      opacity:0; transition:opacity .3s;
    }

    .gal-item:hover .gal-overlay {
      opacity:1;
    }

    /* ── Proyectos ─────────────────────────────────────────────── */
    .proy-card {
      background:white; border-radius:2rem; border:1.5px solid #e4ecf4; overflow:hidden; transition:all .4s cubic-bezier(.16, 1, .3, 1);
    }

    .proy-card:hover {
      box-shadow:0 24px 60px rgba(31, 96, 190, .12); transform:translateY(-6px);
    }

    .proy-img {
      width:100%; height:200px; object-fit:cover;
    }

    /* ── Formulario Contacto ───────────────────────────────────── */
    .info-card {
      background:white; border-radius:1.5rem; border:1.5px solid #e4ecf4; padding:24px; display:flex; align-items:flex-start; gap:16px; transition:all .3s ease;
    }

    .info-card:hover {
      border-color:#bfdbfe; box-shadow:0 8px 32px rgba(31, 96, 190, .08);
    }

    .info-icon {
      width:48px; height:48px; border-radius:1rem; display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0;
    }

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

    .form-label {
      display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.15em; color:#64748b; margin-bottom:8px;
    }

    .form-input {
      width:100%; padding:14px 18px; border-radius:1rem; border:1.5px solid #e4ecf4; background:white; font-family:'DM Sans', sans-serif; font-size:14px; color:var(--ink); outline:none; transition:border-color .2s, box-shadow .2s;
    }

    .form-input:focus {
      border-color:var(--blue); box-shadow:0 0 0 3px rgba(31, 96, 190, .1);
    }

    .form-input::placeholder {
      color:#cbd5e1;
    }

    textarea.form-input {
      resize:vertical; min-height:130px;
    }

    select.form-input {
      cursor:pointer;
    }

    #form-success {
      display:none;
    }

    /* ── Colaboradores ─────────────────────────────────────────── */
    .colab-card {
      background:white; border-radius:2rem; border:1.5px solid #e4ecf4; overflow:hidden; transition:all .4s cubic-bezier(.16, 1, .3, 1);
    }

    .colab-card:hover {
      box-shadow:0 24px 60px rgba(31, 96, 190, .12); transform:translateY(-6px);
    }

    .colab-initials {
      width:100%; height:180px; display:flex; align-items:center; justify-content:center; font-family:'Syne', sans-serif; font-size:3rem; font-weight:800; color:var(--blue);
    }

    .colab-foto {
      width:100%; height:180px; object-fit:cover;
    }

    .area-badge {
      display:inline-block; padding:3px 12px; border-radius:100px; font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; background:var(--blue-l); color:var(--blue);
    }

    /* ── Testimonios página ────────────────────────────────────── */
    .test-card {
      background:white; border-radius:2rem; border:1.5px solid #e4ecf4; padding:32px; transition:all .4s cubic-bezier(.16, 1, .3, 1); position:relative;
    }

    .test-card:hover {
      box-shadow:0 24px 60px rgba(31, 96, 190, .1); transform:translateY(-5px);
    }

    .test-card .big-quote {
      font-family:'Crimson Pro', serif; font-size:5rem; line-height:.8; color:var(--blue); opacity:.1; position:absolute; top:20px; left:24px; pointer-events:none;
    }

    .poblacion-tag {
      display:inline-block; padding:3px 10px; border-radius:100px; font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; background:var(--blue-l); color:var(--blue);
    }

    .stars {
      color:#f59e0b; font-size:11px; letter-spacing:2px;
    }

    /* ── Nosotros ──────────────────────────────────────────────── */
    .identity-card {
      background:white; border-radius:2rem; border:1.5px solid #e4ecf4; padding:36px; transition:all .4s cubic-bezier(.16, 1, .3, 1); position:relative; overflow:hidden;
    }

    .identity-card::after {
      content:''; position:absolute; bottom:0; left:0; width:100%; height:3px; background:linear-gradient(90deg, var(--blue), #60a5fa); transform:scaleX(0); transform-origin:left; transition:transform .4s ease;
    }

    .identity-card:hover {
      box-shadow:0 24px 60px rgba(31, 96, 190, .1); transform:translateY(-5px);
    }

    .identity-card:hover::after {
      transform:scaleX(1);
    }

    .timeline-item {
      display:flex; gap:20px;
    }

    .tl-dot {
      flex-shrink:0; display:flex; flex-direction:column; align-items:center;
    }

    .tl-circle {
      width:40px; height:40px; border-radius:50%; background:var(--blue); color:white; display:flex; align-items:center; justify-content:center; font-family:'Syne', sans-serif; font-size:11px; font-weight:800; flex-shrink:0; box-shadow:0 4px 16px rgba(31, 96, 190, .3);
    }

    .tl-line {
      flex:1; width:2px; background:#e4ecf4; margin:6px 0;
    }

    .valor-pill {
      display:flex; align-items:center; gap:12px; padding:16px 20px; background:white; border-radius:1.25rem; border:1.5px solid #e4ecf4; transition:all .3s ease; cursor:default;
    }

    .valor-pill:hover {
      border-color:var(--blue); box-shadow:0 8px 24px rgba(31, 96, 190, .1); transform:translateX(6px);
    }

    .valor-pill i {
      color:var(--blue); flex-shrink:0; width:20px; text-align:center;
    }

    /* ── Filtros ───────────────────────────────────────────────── */
    .filter-btn {
      padding:8px 20px !important; border-radius:100px !important; border:1.5px solid #e4ecf4 !important; background:white !important; font-family:'DM Sans', sans-serif; font-size:12px !important; font-weight:600 !important; color:#64748b !important; cursor:pointer; transition:all .2s;
    }

    .filter-btn.active, .filter-btn:hover {
      background:var(--blue) !important; border-color:var(--blue) !important; color:white !important;
    }

    /* ── Badges de estado eventos ─────────────────────────────── */
    .estado-badge {
      display:inline-flex; align-items:center; gap:5px;
      font-family:'DM Sans',sans-serif; font-size:10px; font-weight:600;
      padding:4px 10px; border-radius:100px; letter-spacing:.03em;
    }
    .badge-proximo    { background:rgba(96,165,250,.18); color:#1f60be; }
    .badge-curso      { background:rgba(245,158,11,.18);  color:#b45309; }
    .badge-finalizado { background:rgba(148,163,184,.18); color:#64748b; }

    /* ── Footer ────────────────────────────────────────────────── */
    .footer-link {
      transition:all .2s;
    }

    .footer-link:hover {
      color:white; transform:translateX(4px);
    }

    /* ── Scroll Top ────────────────────────────────────────────── */
    #scrollTop {
      position:fixed; bottom:28px; right:28px; z-index:99; width:48px; height:48px; border-radius:50%; background:var(--blue); color:white; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(31, 96, 190, .4); opacity:0; transform:translateY(20px); transition:all .3s ease;
    }

    #scrollTop.show {
      opacity:1; transform:translateY(0);
    }

    #scrollTop:hover {
      background:var(--blue-d); transform:translateY(-3px) !important;
    }

    /* ── Cookie ────────────────────────────────────────────────── */
    #cookie-banner {
      backdrop-filter:blur(12px); transition:transform .4s ease, opacity .4s ease;
    }

    #cookie-banner.hide {
      transform:translateY(120%); opacity:0; pointer-events:none;
    }

    /* ── Suscripción ───────────────────────────────────────────── */
    .sus-input {
      padding:14px 18px; border-radius:1rem 0 0 1rem; border:1.5px solid #e4ecf4; border-right:none; font-family:'DM Sans', sans-serif; font-size:14px; outline:none; width:100%;
    }

    .sus-btn {
      padding:14px 20px; background:var(--blue); color:white; border:none; border-radius:0 1rem 1rem 0; font-family:'DM Sans', sans-serif; font-weight:700; cursor:pointer; transition:background .2s; white-space:nowrap;
    }

    .sus-btn:hover {
      background:var(--blue-d);
    }

    /* ── Aliados Redes ─────────────────────────────────────────── */
    .red-card {
      background:white; border-radius:2rem; border:1.5px solid #e4ecf4; overflow:hidden; transition:all .4s cubic-bezier(.16, 1, .3, 1);
    }

    .red-card:hover {
      box-shadow:0 24px 60px rgba(31, 96, 190, .12); transform:translateY(-6px);
    }

    .red-img {
      width:100%; height:200px; object-fit:cover;
    }

    
/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Todos los dispositivos (v2 mejorada)
══════════════════════════════════════════════════════════════ */

/* ── Móvil pequeño (320px-375px) ─────────────────────────── */
@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }
  .hero-stat-card {
    padding: 14px 16px !important;
  }
  .hero-stat-card h3 {
    font-size: 1.4rem !important;
  }
  .red-social-btn {
    padding: 10px 16px !important;
    font-size: 11px !important;
  }
  .testi-card {
    min-width: 88vw !important;
    max-width: 88vw !important;
    padding: 18px !important;
  }
  .ally-logo {
    min-height: 80px !important;
    padding: 12px 10px !important;
  }
  .sec-title {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
  }
  .value-card, .linea-card {
    padding: 18px !important;
    margin-bottom: 12px !important;
  }
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .btn {
    padding: 10px 18px !important;
    font-size: 12px !important;
  }
}

/* ── Móvil regular (381px-575px) ─────────────────────────── */
@media (min-width: 381px) and (max-width: 575px) {
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem) !important;
  }
  .hero-stat-card {
    padding: 16px 18px !important;
  }
  .testi-card {
    min-width: 82vw !important;
    max-width: 82vw !important;
  }
  .ally-logo {
    min-height: 90px !important;
    padding: 14px 16px !important;
  }
  .ally-logo img {
    max-height: 40px !important;
  }
  .sec-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
  }
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .value-card, .linea-card {
    padding: 20px !important;
    margin-bottom: 12px !important;
  }
}

/* ── Móvil grande / Tablet pequeña (576px-768px) ─────────── */
@media (min-width: 576px) and (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem) !important;
  }
  .hero-img-frame {
    border-radius: 1.5rem !important;
  }
  .testi-card {
    min-width: 70vw !important;
    max-width: 70vw !important;
  }
  .red-social-btn {
    padding: 12px 20px !important;
    font-size: 12px !important;
  }
  .sec-title {
    font-size: clamp(1.8rem, 5vw, 3rem) !important;
  }
  .ally-logo {
    min-height: 95px !important;
  }
  .value-card, .linea-card {
    padding: 22px !important;
  }
}

/* ── Tablet (769px-1024px) ─────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem) !important;
  }
  .ally-logo {
    min-height: 100px !important;
  }
  .sec-title {
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
  }
}

/* ── Pantallas grandes (1025px+) ─────────────────────────── */
@media (min-width: 1025px) {
  .container, .max-w-7xl {
    max-width: 1280px !important;
  }
}

/* ── Grid helpers para móvil ──────────────────────────────── */
@media (max-width: 575px) {
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  .grid-cols-4 {
    grid-template-columns: 1fr 1fr !important;
  }
  .flex-row {
    flex-direction: column !important;
  }
  .ally-logo {
    min-height: 85px !important;
  }
}

/* ── Hero stats grid en móvil ─────────────────────────────── */
@media (max-width: 575px) {
  .hero-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

/* ── Hero imagen responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .hero-img-frame {
    margin-top: 2rem !important;
    border-radius: 1.5rem !important;
    max-width: 100% !important;
  }
  .hero-img-frame img {
    width: 100% !important;
    height: auto !important;
    max-height: 280px !important;
    object-fit: cover !important;
  }
}

/* ── Redes sociales — wrapping ─────────────────────────────── */
@media (max-width: 575px) {
  #redesIndex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .red-social-btn {
    flex: 0 0 auto !important;
    min-width: 110px !important;
    max-width: 145px !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 11px !important;
  }
  .red-social-btn i {
    font-size: 16px !important;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  #redesIndex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: flex-start !important;
  }
  .red-social-btn {
    flex: 0 0 auto !important;
  }
}

/* ── Nav responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  #main-nav .hidden.lg\:flex {
    display: none !important;
  }
  #menu-btn {
    display: flex !important;
  }
  #mobile-menu {
    display: flex !important;
  }
}

@media (min-width: 1025px) {
  #menu-btn {
    display: none !important;
  }
  #mobile-menu {
    display: none !important;
  }
}

/* ── Testimonios carrusel — scrollbar y dots ───────────────── */
@media (max-width: 768px) {
  .testi-track::-webkit-scrollbar {
    height: 4px;
  }
  .testi-track::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
  }
  .testi-track::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 4px;
  }
  .testi-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 12px !important;
  }
  .testi-card {
    padding: 20px !important;
  }
  .test-card .big-quote {
    font-size: 3rem !important;
    top: 10px !important;
    left: 16px !important;
  }
}

/* ── Aliados grid ─────────────────────────────────────────── */
@media (min-width: 576px) and (max-width: 768px) {
  .aliados-grid, #aliadosGrid, #aliadosIndex {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
}

/* ── Formularios mobile-friendly ───────────────────────────── */
@media (max-width: 575px) {
  .form-input {
    padding: 12px 14px !important;
    font-size: 15px !important;
  }
  textarea.form-input {
    min-height: 100px !important;
  }
  .form-label {
    font-size: 10px !important;
  }
  .form-group {
    margin-bottom: 14px !important;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
@media (max-width: 575px) {
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }
  footer .text-sm {
    font-size: 12px !important;
  }
}

@media (min-width: 576px) and (max-width: 1024px) {
  footer .grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── Cookie banner ────────────────────────────────────────── */
@media (max-width: 480px) {
  #cookie-banner {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 12px !important;
    max-width: none !important;
  }
  #cookie-banner p {
    font-size: 11px !important;
  }
}

/* ── Scroll top ───────────────────────────────────────────── */
@media (max-width: 575px) {
  #scrollTop {
    width: 42px !important;
    height: 42px !important;
    bottom: 18px !important;
    right: 14px !important;
  }
}

/* ── Donation cards ───────────────────────────────────────── */
@media (max-width: 575px) {
  .don-card {
    padding: 18px !important;
    border-radius: 1.5rem !important;
  }
  .don-card h3 {
    font-size: 1.1rem !important;
  }
  .metodo-card {
    padding: 18px !important;
  }
}

/* ── Video ─────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .play-btn {
    width: 56px !important;
    height: 56px !important;
  }
  .play-btn i {
    font-size: 18px !important;
  }
}

/* ── Hexágonos población ──────────────────────────────────── */
@media (max-width: 575px) {
  .pop-hex {
    width: 70px !important;
    height: 80px !important;
  }
  .pop-hex i {
    font-size: 1.1rem !important;
  }
}

/* ── CTA strip ─────────────────────────────────────────────── */
@media (max-width: 575px) {
  .cta-strip {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .cta-strip h2 {
    font-size: 1.4rem !important;
  }
}

/* ── Timeline ───────────────────────────────────────────────── */
@media (max-width: 575px) {
  .timeline-item {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .tl-line {
    display: none !important;
  }
}

/* ── Razones confiar ─────────────────────────────────────── */
.razon-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 16px 20px !important;
  background: white !important;
  border: 1.5px solid #e4ecf4 !important;
  border-radius: 1rem !important;
  transition: all .2s !important;
}
.razon-item:hover {
  border-color: #1f60be !important;
  box-shadow: 0 4px 16px rgba(31,96,190,.1) !important;
  transform: translateX(4px) !important;
}
.razon-num {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1f60be, #0d3d85) !important;
  color: white !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* ── Filter buttons wrap ───────────────────────────────────── */
@media (max-width: 480px) {
  .filter-btn {
    padding: 5px 12px !important;
    font-size: 10px !important;
  }
  #catFiltros, #galFiltros {
    flex-wrap: wrap !important;
    gap: 5px !important;
  }
}

/* ── Nav menú móvil ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: 8px !important;
    box-shadow: none !important;
    border: 1px solid #e4ecf4 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* ── Info cards contacto ───────────────────────────────────── */
@media (max-width: 575px) {
  .info-card {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 16px !important;
  }
}

/* ── Ajustes generales de padding secciones ───────────────── */
@media (max-width: 768px) {
  .hero-bg {
    padding-top: 5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .page-hero {
    padding-top: 4.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .value-card, .linea-card {
    margin-bottom: 12px !important;
  }
}

/* ── Testimonios página ────────────────────────────────────── */
@media (max-width: 575px) {
  .test-card {
    padding: 20px !important;
  }
  .test-card .big-quote {
    font-size: 3rem !important;
  }
}

/* ── Proyectos ─────────────────────────────────────────────── */
@media (max-width: 575px) {
  .proy-card {
    margin-bottom: 12px !important;
  }
  .proy-img {
    height: 150px !important;
  }
}

/* ── Galería ───────────────────────────────────────────────── */
@media (max-width: 575px) {
  .gal-item {
    border-radius: 1rem !important;
  }
}

/* ── Scroll suave para anclas ──────────────────────────────── */
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 80px !important;
  }
}
