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

  .gallery-image {
    animation: slideInUp 0.6s ease-out backwards;
  }

  .gallery-image:hover img {
    filter: brightness(1.15);
  }

  /* Stats responsive */
  .sr-stat-card {
    padding: 18px;
    border-radius: 14px;
    border: 2px solid #7090bd;
    background: rgba(225, 219, 219, 0.02);
    box-shadow: 0 8px 24px rgba(241, 236, 236, 0.25);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .sr-stat-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: #e37123;
    box-shadow: 0 12px 30px rgba(201, 195, 195, 0.3);
  }
  .sr-stat-number {
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 6px;
  }
  .sr-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: clamp(0.65rem, 2.3vw, 0.9rem);
  }
  @media (max-width: 640px) {
    .sr-stats-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .sr-stat-card {
      padding: 14px;
    }
  }

  /* ════════════════════════════════════════════════════════════
     MODAL GALERÍA — DISEÑO CINEMATOGRÁFICO CENTRADO PERFECTO
     ════════════════════════════════════════════════════════════ */
  .sr-gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 50;
  }
  .sr-gallery-modal.is-open { display: block; }

.sr-gallery-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;

  background:
    /* CAPA DE PROFUNDIDAD */
    linear-gradient(180deg, #020617 0%, #0B1E3A 50%, #020617 100%),

    /* ILUMINACIÓN SUAVE LATERAL */
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 40%),

    /* ACENTO NARANJA CONTROLADO (NO INVASIVO) */
    radial-gradient(500px 300px at 90% 90%, rgba(255, 140, 0, 0.15), transparent 70%);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

  .sr-gallery-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(88vw, 1100px);
    height: min(84vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 51;
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(8, 14, 30, 0.58);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.07),
      0 40px 100px rgba(0, 0, 0, 0.8),
      0 0 90px rgba(34, 197, 94, 0.10);
  }

  /* Reserva una franja inferior para el texto (evita que se monte sobre la imagen)
     y da mejor lectura sin importar si la imagen es horizontal o vertical. */
  .sr-gallery-dialog::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(92px, 18%, 160px);
    background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.00));
    pointer-events: none;
    z-index: 6;
  }

  .sr-gallery-img-fullscreen {
    width: 100%;
    height: 100%;
    /* IMPORTANTE: evita que las fotos verticales se recorten */
    object-fit: contain;
    object-position: center;
    display: block;
    position: absolute;
    inset: 0;
    /* deja “aire” negro alrededor como WhatsApp/visor nativo */
    background: rgba(0,0,0,0.35);
  }

  /* SOLO panorámicas/horizontales: llenar el modal */
  .sr-gallery-img-fullscreen.is-landscape {
    object-fit: cover;
  }

  .sr-gallery-caption {
    position: absolute;
    left: 1.5rem;
    bottom: 1.15rem;
    right: 1.5rem;
    /* por encima del gradiente inferior */
    z-index: 10;
    /* sin contenedor/caja: solo texto */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: grid;
    gap: 4px;
    text-align: left;
    justify-items: start;
    pointer-events: none;
    max-width: min(720px, 100%);
  }

  .sr-gallery-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  }

  .sr-gallery-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  }

  /* CLOSE BUTTON — TOP RIGHT CENTRADO PERFECTAMENTE */
  .sr-gallery-close {
    position: fixed;
    top: max(1.1rem, env(safe-area-inset-top));
    right: max(1.1rem, env(safe-area-inset-right));
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.80);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
    backdrop-filter: blur(8px);
    padding: 0;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
  }

  .sr-gallery-close span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0;
    width: 100%;
    height: 100%;
  }

  .sr-gallery-close:hover {
    background: rgba(249, 115, 22, 0.75);
    color: #fff;
    transform: scale(1.12) rotate(90deg);
  }

  /* NAV BUTTONS — CENTRADOS PERFECTAMENTE EN LOS LADOS */
  .sr-gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
    backdrop-filter: blur(10px);
    padding: 0;
    line-height: 1;
    min-width: 52px;
    min-height: 52px;
  }

  .sr-gallery-nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 2.2rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0;
    width: 100%;
    height: 100%;
  }

  .sr-gallery-nav:hover {
    background: rgba(249, 115, 22, 0.75);
    color: #fff;
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.45);
  }

  .sr-gallery-prev {
    left: max(1.0rem, env(safe-area-inset-left));
  }

  .sr-gallery-prev:hover {
    transform: translateY(-50%) scale(1.12) translateX(-3px);
  }

  .sr-gallery-next {
    right: max(1.0rem, env(safe-area-inset-right));
  }

  .sr-gallery-next:hover {
    transform: translateY(-50%) scale(1.12) translateX(3px);
  }

  /* COUNTER — TOP LEFT */
  .sr-gallery-count {
    position: fixed;
    top: max(1.1rem, env(safe-area-inset-top));
    left: max(1.1rem, env(safe-area-inset-left));
    z-index: 100;
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(6, 14, 34, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
  }

  /* DOTS PAGINACIÓN — BOTTOM CENTER */
  .sr-gallery-dots {
    position: fixed;
    bottom: max(1.1rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    background: rgba(6, 14, 34, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
  }

  .sr-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
  }

  .sr-gallery-dot.active {
    width: 22px;
    background: #f97316;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.7);
  }

  .sr-gallery-lock { overflow: hidden; }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .sr-gallery-dialog {
      width: 92vw;
      height: 70vh;
    }

    .sr-gallery-dialog::after {
      height: clamp(96px, 22%, 170px);
    }

    .sr-gallery-nav {
      width: 45px;
      height: 45px;
      font-size: 1.2rem;
    }

    .sr-gallery-prev { left: 1rem; }
    .sr-gallery-next { right: 1rem; }
    .sr-gallery-close { width: 38px; height: 38px; font-size: 0.9rem; }
    .sr-gallery-count { font-size: 0.65rem; padding: 0.25rem 0.6rem; }

    .sr-gallery-caption {
      left: 1rem;
      bottom: 1rem;
      right: 1rem;
      padding: 0;
    }

    .sr-gallery-title {
      font-size: 0.95rem;
    }

    .sr-gallery-desc {
      font-size: 0.7rem;
    }
  }

  @media (max-width: 420px) {
    .sr-gallery-dialog {
      width: 94vw;
      height: 72vh;
    }

    .sr-gallery-nav {
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }

    .sr-gallery-dialog::after {
      height: clamp(104px, 26%, 190px);
    }

    .sr-gallery-title {
      font-size: 0.9rem;
    }

    .sr-gallery-desc {
      font-size: 0.65rem;
    }
  }
