/* ============================================
   25 ANIVERSARIO - VERSIÓN 19.0 (HERO +100PX)
   Paleta: Grises/Plateados + DEGRADÉ METÁLICO
   + Hero SIN flechas
   + Hero AUMENTADO de tamaño (650px desktop / 500px mobile)
   + Historias textos completos
   + FIX: Hover Productos (Fondo Plata / Icono Negro)
   + FIX: Hover Redes Sociales (Fondo Plata / Texto Negro)
   ============================================ */

:root {
    /* BASE */
    --galpon-dark: #1a1a1a;
    --galpon-gray: #333333;
    --galpon-gray-medium: #666666;
    --galpon-light: #f4f4f4;
    --galpon-white: #ffffff;

    /* Plateados base (fallback) */
    --galpon-silver: #c0c0c0;
    --galpon-silver-light: #d8d8d8;
    --galpon-silver-dark: #a0a0a0;

    /* METAL (degradé tipo "badge") */
    --galpon-metal-1: #ffffff;
    --galpon-metal-2: #e9e9e9;
    --galpon-metal-3: #cfcfcf;
    --galpon-metal-4: #a9a9a9;

    /* Gradient definido */
    --galpon-metal-gradient: linear-gradient(90deg,
            var(--galpon-metal-2) 0%,
            var(--galpon-metal-1) 18%,
            var(--galpon-metal-3) 36%,
            var(--galpon-metal-1) 52%,
            var(--galpon-metal-4) 70%,
            var(--galpon-metal-2) 100%);

    --transition: all 0.3s ease;
}

@keyframes galponMetalShine {
    0% {
        background-position: 0% 50%;
        opacity: .95;
    }

    50% {
        background-position: 100% 50%;
        opacity: 1;
    }

    100% {
        background-position: 0% 50%;
        opacity: .95;
    }
}

/* Lock scroll cuando modal abierto */
body.modal-open {
    overflow: hidden;
}

/* ============================================
   HERO INTERACTIVO
   ============================================ */
.aniversario-hero-interactive {
    background: var(--galpon-dark);
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
}

/* OCULTAR FLECHAS E INDICADORES DEL HERO */
.hero-carousel-wrapper>.carousel-arrow,
.aniversario-hero-interactive .carousel-arrow,
.hero-carousel-wrapper .carousel-arrow {
    display: none !important;
}

.hero-carousel-wrapper>.carousel-indicators,
.aniversario-hero-interactive .carousel-indicators,
.hero-carousel-wrapper .carousel-indicators {
    display: none !important;
}

/* HERO LOGO */
.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 26px 0;
    padding-top: 4px;
}

.hero-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.hero-logo {
    width: min(420px, 78vw);
    max-width: 420px;
    height: auto;
    display: block;
    opacity: .95;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
    transition: transform .25s ease, opacity .25s ease;
}

.hero-logo-link:hover .hero-logo {
    transform: translateY(-1px);
    opacity: 1;
}

.hero-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

.hero-header-bottom {
    margin-top: 40px;
    margin-bottom: 0;
}

/* HERO TITLE */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin: 0 auto 20px auto;
    position: relative;
    display: inline-block;
    max-width: 900px;
    line-height: 1.12;
    color: var(--galpon-silver-light);
    /* fallback */

    background: var(--galpon-metal-gradient);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .35));
    text-shadow: 0 1px 0 rgba(255, 255, 255, .10), 0 -1px 0 rgba(0, 0, 0, .18);
}

@supports not (-webkit-background-clip: text) {
    .hero-title {
        background: none;
        color: var(--galpon-silver-light);
        -webkit-text-stroke: 0;
    }
}

.hero-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    width: min(220px, 55%);
    height: 6px;
    border-radius: 999px;
    background: var(--galpon-metal-gradient);
    background-size: 250% 100%;
    animation: galponMetalShine 7s ease-in-out infinite;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 1px 0 rgba(255, 255, 255, .18) inset;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 2rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin: 30px auto 0 auto;
    max-width: 600px;
    line-height: 1.6;
    letter-spacing: 2px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-ctas .btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

/* Botón primario */
.hero-ctas .btn-primary {
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 7s ease-in-out infinite;
    color: var(--galpon-dark);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.hero-ctas .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

/* Secundario */
.hero-ctas .btn-secondary {
    background: transparent;
    color: var(--galpon-silver-light);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-ctas .btn-secondary:hover {
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 7s ease-in-out infinite;
    color: var(--galpon-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* CAROUSEL & COMPARISON */
.hero-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.hero-carousel-wrapper.hero-single {
    padding: 0;
}

.comparisons-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.comparison-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.comparison-slide.active {
    display: block;
    opacity: 1;
}

.comparison-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: col-resize;
    background: var(--galpon-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* --- AJUSTE DE ALTURA HERO (DESKTOP) --- */
.comparison-base {
    position: relative;
    width: 100%;
    display: block;
    max-height: 650px;
    /* Aumentado de 550 a 650 */
    overflow: hidden;
}

.base-image {
    width: 100%;
    height: auto;
    display: block;
    visibility: hidden;
    max-height: 650px;
    /* Aumentado de 550 a 650 */
    object-fit: cover;
}

.before-container,
.after-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-container {
    z-index: 2;
    clip-path: inset(0 0 0 50%);
    will-change: clip-path;
}

.after-container {
    z-index: 3;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.before-container .comparison-media,
.after-container .comparison-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 650px;
    /* Aumentado de 550 a 650 */
}

.label {
    position: absolute;
    top: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 10;
    pointer-events: none;
    transition: var(--transition);
}

.label-after {
    left: 20px;
    background: var(--galpon-metal-gradient);
    background-size: 260% 100%;
    animation: galponMetalShine 8s ease-in-out infinite;
    color: var(--galpon-dark);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.10) inset;
}

.label-before {
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    color: var(--galpon-white);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 9s ease-in-out infinite;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
    will-change: left;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 8s ease-in-out infinite;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 30;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 10px 26px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: left;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.slider-handle:active {
    cursor: grabbing;
}

.handle-arrows {
    display: block;
    position: relative;
    width: 20px;
    height: 20px;
}

.handle-arrows::before,
.handle-arrows::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border: solid var(--galpon-dark);
    border-width: 0 2px 2px 0;
}

.handle-arrows::before {
    left: 0;
    transform: translateY(-50%) rotate(135deg);
}

.handle-arrows::after {
    right: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.comparison-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
    color: var(--galpon-white);
    padding: 40px 20px 15px;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.comparison-container:hover .comparison-info {
    opacity: 1;
}

.info-year {
    display: block;
    font-size: 19px;
    font-weight: 700;
    background: var(--galpon-metal-gradient);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

@supports not (-webkit-background-clip: text) {
    .info-year {
        color: var(--galpon-silver);
        background: none;
    }
}

.info-desc {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.hero-instructions {
    text-align: center;
    margin-top: 10px;
}

.hero-instructions p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================
   TIMELINE
   ============================================ */
.aniversario-timeline {
    background: var(--galpon-light);
    padding: 80px 20px;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--galpon-dark);
    text-transform: uppercase;
    font-weight: 900;
    margin: 0 0 50px 0;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 8s ease-in-out infinite;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.timeline-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 70px;
}

.timeline-slider {
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
}

.timeline-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.timeline-card {
    flex: 0 0 calc((100% - 30px) / 2);
    max-width: calc((100% - 30px) / 2);
    width: calc((100% - 30px) / 2);
    background: var(--galpon-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 420px;
    cursor: pointer;
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 8s ease-in-out infinite;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.timeline-card:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.timeline-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--galpon-gray);
}

.timeline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.timeline-card:hover .timeline-card-image img {
    transform: scale(1.05);
}

.timeline-card-year {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 8s ease-in-out infinite;
    color: var(--galpon-dark);
    font-size: 18px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.timeline-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.timeline-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--galpon-dark);
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-card-desc {
    font-size: 14px;
    color: var(--galpon-gray);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--galpon-metal-gradient);
    background-size: 260% 100%;
    animation: galponMetalShine 8s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--galpon-dark);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.timeline-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.timeline-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
    filter: grayscale(35%);
}

.timeline-arrow-left {
    left: 0;
}

.timeline-arrow-right {
    right: 0;
}

.timeline-arrow svg {
    width: 22px;
    height: 22px;
}

.timeline-counter {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--galpon-gray);
}

.timeline-counter strong {
    color: var(--galpon-dark);
}

/* MODAL */
.timeline-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.timeline-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.timeline-modal {
    background: var(--galpon-white);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.timeline-modal-overlay.active .timeline-modal {
    transform: translateY(0) scale(1);
}

.timeline-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--galpon-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-modal-close:hover {
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 7s ease-in-out infinite;
    transform: scale(1.1);
}

.timeline-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--galpon-white);
    transition: stroke 0.3s ease;
}

.timeline-modal-close:hover svg {
    stroke: var(--galpon-dark);
}

.timeline-modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--galpon-gray);
}

.timeline-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-modal-year {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 8s ease-in-out infinite;
    color: var(--galpon-dark);
    font-size: 22px;
    font-weight: 900;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.timeline-modal-year:empty {
    display: none;
}

.timeline-modal-content {
    padding: 35px;
    max-height: calc(90vh - 300px);
    overflow-y: auto;
}

.timeline-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--galpon-dark);
    margin: 0 0 25px 0;
    line-height: 1.3;
}

.timeline-modal-desc {
    font-size: 18px;
    color: var(--galpon-gray);
    line-height: 1.9;
    margin: 0;
}

.timeline-modal-content::-webkit-scrollbar {
    width: 6px;
}

.timeline-modal-content::-webkit-scrollbar-thumb {
    background: var(--galpon-silver);
    border-radius: 3px;
}

/* ============================================
   PRODUCTOS (FIXED HOVER)
   ============================================ */
.aniversario-productos {
    background: var(--galpon-dark);
    padding: 80px 20px;
}

.aniversario-productos .section-title {
    color: var(--galpon-white);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
}

.producto-item {
    display: flex;
}

.producto-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    min-height: 220px;
    width: 100%;
    flex: 1;
}

/* --- HOVER EFECTO PLATA FORZADO --- */
.producto-link:hover {
    background: var(--galpon-metal-gradient) !important;
    background-size: 240% 100%;
    animation: galponMetalShine 5s ease-in-out infinite;

    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.2) inset;
}

.producto-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.producto-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Blanco por defecto */
    transition: var(--transition);
}

/* Icono se vuelve NEGRO en hover */
.producto-link:hover .producto-icon img {
    filter: brightness(0) !important;
    /* Negro total */
    transform: scale(1.1);
}

.producto-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--galpon-white);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    transition: var(--transition);
}

/* Texto se vuelve NEGRO en hover */
.producto-link:hover .producto-name {
    color: #000000 !important;
    font-weight: 800;
    text-shadow: none;
}

/* ============================================
   ALIADOS
   ============================================ */
.aniversario-aliados {
    background: var(--galpon-white);
    padding: 80px 20px;
    overflow: hidden;
}

.aliados-carousel {
    margin-top: 40px;
    overflow: hidden;
}

.aliados-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
}

.aliado-item {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--galpon-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.aliado-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.aliado-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.aliado-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   HISTORIAS
   ============================================ */
.aniversario-historias {
    background: var(--galpon-light);
    padding: 80px 20px;
}

.historias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.historia-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: var(--galpon-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.historia-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.historia-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}

.historia-media>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.historia-item:hover .historia-media>img {
    transform: scale(1.05);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.historia-overlay {
    position: relative;
    background: var(--galpon-dark);
    color: var(--galpon-white);
    padding: 25px;
    transform: none;
    transition: background 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.historia-item:hover .historia-overlay {
    background: #242424;
}

.historia-cliente {
    font-size: 22px;
    font-weight: 700;
    background: var(--galpon-metal-gradient);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 12px 0;
    flex-shrink: 0;
}

@supports not (-webkit-background-clip: text) {
    .historia-cliente {
        color: var(--galpon-silver);
        background: none;
    }
}

.historia-testimonio {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.mini-gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mini-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mini-slide.active {
    opacity: 1;
}

.mini-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-prev,
.mini-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 8s ease-in-out infinite;
    color: var(--galpon-dark);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.mini-prev {
    left: 10px;
}

.mini-next {
    right: 10px;
}

.mini-prev:hover,
.mini-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.mini-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.mini-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-dots span.active {
    background: var(--galpon-metal-gradient);
    background-size: 240% 100%;
    animation: galponMetalShine 7s ease-in-out infinite;
    transform: scale(1.3);
}

/* ============================================
   CONTACTO
   ============================================ */
.aniversario-contacto {
    background: var(--galpon-dark);
    padding: 80px 20px;
}

.aniversario-contacto .section-title {
    color: var(--galpon-white);
    margin-bottom: 40px;
}

/* FORMULARIO */
.aniversario-contacto input[type="text"],
.aniversario-contacto input[type="email"],
.aniversario-contacto input[type="tel"],
.aniversario-contacto input[type="number"],
.aniversario-contacto input[type="url"],
.aniversario-contacto textarea,
.aniversario-contacto select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.aniversario-contacto input::placeholder,
.aniversario-contacto textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.aniversario-contacto input:focus,
.aniversario-contacto textarea:focus,
.aniversario-contacto select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14) !important;
}

.aniversario-contacto label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.aniversario-contacto p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Submit */
.aniversario-contacto input[type="submit"],
.aniversario-contacto button[type="submit"],
.aniversario-contacto .wpcf7-submit {
    background: var(--galpon-metal-gradient) !important;
    background-size: 240% 100% !important;
    animation: galponMetalShine 7s ease-in-out infinite !important;
    color: var(--galpon-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    padding: 15px 40px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-radius: 6px !important;
    margin: 10px 4.3px 0 4.3px;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    min-height: 50px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
}

.aniversario-contacto input[type="submit"]:hover,
.aniversario-contacto button[type="submit"]:hover,
.aniversario-contacto .wpcf7-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.16) inset !important;
}

.aniversario-contacto .wpcf7-response-output {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    padding: 15px !important;
    margin-top: 20px !important;
    border-radius: 6px !important;
}

.aniversario-contacto .wpcf7-not-valid-tip {
    color: #ff6b6b !important;
    font-size: 13px !important;
}

/* SOCIAL BUTTONS */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--galpon-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* --- HOVER EFECTO PLATA FORZADO (SOCIAL) --- */
.btn-social:hover {
    background: var(--galpon-metal-gradient) !important;
    background-size: 240% 100%;
    animation: galponMetalShine 7s ease-in-out infinite;

    border-color: transparent !important;
    /* Quita borde blanco */
    color: #1a1a1a !important;
    /* Texto negro */
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.btn-social:hover svg {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .historias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .aniversario-hero-interactive,
    .aniversario-timeline,
    .aniversario-productos,
    .aniversario-aliados,
    .aniversario-historias,
    .aniversario-contacto {
        padding: 60px 15px;
    }

    .hero-logo-wrapper {
        margin-bottom: 18px;
    }

    .hero-logo {
        max-width: 320px;
    }

    .hero-carousel-wrapper {
        padding: 0;
    }

    .hero-title {
        max-width: 90%;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-ctas .btn {
        min-width: 200px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* --- AJUSTE ALTURA HERO MÓVIL (Aumentado a 500px) --- */
    .comparison-base,
    .base-image,
    .before-container .comparison-media,
    .after-container .comparison-media {
        max-height: 500px;
        /* Aumentado de 400 a 500 */
    }

    .label {
        font-size: 12px;
        padding: 6px 12px;
    }

    .slider-handle {
        width: 40px;
        height: 40px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .producto-link {
        padding: 30px 15px;
        min-height: 180px;
    }

    .producto-icon img {
        width: 60px;
        height: 60px;
    }

    .producto-name {
        font-size: 14px;
        min-height: 40px;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-social {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .timeline-carousel-wrapper {
        padding: 0 55px;
    }

    .timeline-track {
        gap: 20px;
    }

    .timeline-card {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        height: 400px;
    }

    .timeline-card-image {
        height: 200px;
    }

    .timeline-arrow {
        width: 45px;
        height: 45px;
    }

    .timeline-card-title {
        font-size: 18px;
    }

    .timeline-card-desc {
        font-size: 13px;
    }

    .timeline-modal {
        max-width: 100%;
        max-height: 95vh;
    }

    .timeline-modal-image {
        height: 220px;
    }

    .timeline-modal-content {
        padding: 25px 20px;
    }

    .timeline-modal-title {
        font-size: 24px;
    }

    .timeline-modal-desc {
        font-size: 16px;
    }

    .historias-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .historia-overlay {
        padding: 20px;
        min-height: 160px;
    }

    .historia-cliente {
        font-size: 20px;
    }

    .historia-testimonio {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 260px;
    }

    .hero-carousel-wrapper {
        padding: 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero-ctas .btn {
        font-size: 12px;
        padding: 12px 18px;
        min-width: 180px;
    }

    .timeline-carousel-wrapper {
        padding: 0 50px;
    }

    .timeline-arrow {
        width: 40px;
        height: 40px;
    }

    .timeline-card {
        height: 380px;
    }

    .timeline-card-image {
        height: 180px;
    }

    .timeline-card-content {
        padding: 15px;
    }

    .timeline-card-year {
        font-size: 16px;
        padding: 6px 12px;
    }

    .timeline-card-title {
        font-size: 16px;
    }

    .timeline-card-desc {
        font-size: 12px;
    }

    .timeline-modal-overlay {
        padding: 10px;
    }

    .timeline-modal-image {
        height: 180px;
    }

    .timeline-modal-content {
        padding: 20px 15px;
    }

    .timeline-modal-title {
        font-size: 20px;
    }

    .timeline-modal-desc {
        font-size: 15px;
    }

    .timeline-modal-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .producto-link {
        padding: 25px 10px;
        min-height: 160px;
    }

    .producto-icon img {
        width: 50px;
        height: 50px;
    }

    .producto-name {
        font-size: 12px;
        min-height: 36px;
    }

    .historia-overlay {
        padding: 18px;
        min-height: 140px;
    }

    .historia-cliente {
        font-size: 18px;
    }

    .historia-testimonio {
        font-size: 13px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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