/* --- Variables Globales --- */
:root {
    --primary-blue: #00112b;
    --secondary-blue: #002855;
    
    --xmas-red: #A60B08;
    --xmas-dark-red: #5E0001;
    --xmas-green: #1D2E19;
    --xmas-beige: #CFCABF;
    --xmas-brown: #76584C;
    
    --gold: #ffcf53;
    --text-light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-blue);
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffcf53, rgba(0,0,0,0)),
        radial-gradient(circle at top center, var(--secondary-blue) 0%, var(--primary-blue) 80%);
    background-repeat: repeat, repeat, repeat, no-repeat;
    background-size: 200px 200px, 200px 200px, 200px 200px, 100% 100%;
    background-attachment: fixed;
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* --- Canvas Nieve --- */
#snow-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* --- Luces Navideñas Colgantes --- */
.christmas-lights-string {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 40px;
    background-image: 
        radial-gradient(circle at 10px 15px, var(--xmas-red) 5px, transparent 6px),
        radial-gradient(circle at 30px 15px, var(--gold) 5px, transparent 6px),
        radial-gradient(circle at 50px 15px, var(--xmas-green) 5px, transparent 6px);
    background-size: 60px 40px;
    z-index: 100;
    border-top: 3px solid #111;
    opacity: 0.8;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
    pointer-events: none;
}

/* --- Efecto Bokeh --- */
.bokeh-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.3;
    animation: floatBokeh 10s infinite alternate;
}
.b1 { width: 150px; height: 150px; background: var(--gold); top: 10%; left: 10%; }
.b2 { width: 200px; height: 200px; background: var(--xmas-red); top: 60%; left: 80%; animation-delay: 2s; }
.b3 { width: 120px; height: 120px; background: var(--xmas-green); top: 80%; left: 20%; animation-delay: 4s; }
.b4 { width: 180px; height: 180px; background: var(--gold); top: 30%; left: 70%; animation-delay: 1s; }

@keyframes floatBokeh {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.2); }
}

/* --- Botones --- */
.btn-xmas {
    background: linear-gradient(135deg, var(--xmas-red) 0%, var(--xmas-dark-red) 100%);
    color: white;
    font-weight: 600;
    border: 1px solid var(--xmas-green);
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(166, 11, 8, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-xmas::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-xmas:hover::before { left: 100%; }

.btn-xmas:hover {
    background: linear-gradient(135deg, var(--xmas-green) 0%, #0d1a0b 100%);
    border-color: var(--xmas-red);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(29, 46, 25, 0.6);
    color: white;
}

/* --- Header / Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.xmas-decoration {
    position: absolute;
    z-index: 2;
    animation: floatDecor 8s ease-in-out infinite;
    pointer-events: none;
}
.xmas-decoration i { font-size: 7rem; }
.xmas-1 { top: 15%; left: 5%; animation-delay: 0s; color: rgba(166, 11, 8, 0.4); } 
.xmas-2 { top: 70%; left: 8%; animation-delay: 2s; color: rgba(29, 46, 25, 0.6); } 
.xmas-3 { top: 20%; right: 45%; animation-delay: 4s; color: rgba(255, 207, 83, 0.15); } 
.xmas-4 { top: 60%; right: 5%; animation-delay: 1.5s; color: rgba(207, 202, 191, 0.15); }

@keyframes floatDecor {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

.hero-title { text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.text-gold {
    color: var(--gold);
    background: linear-gradient(to right, var(--gold), #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.absolute-top {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 100;
}

.floating-img {
    max-height: 550px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
    position: relative;
    z-index: 5;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0px); }
}

.glow-effect {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(166, 11, 8, 0.2) 0%, rgba(29, 46, 25, 0.3) 40%, rgba(0,17,43,0) 70%);
    z-index: 1;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* --- Catálogo Section --- */
#catalogo { position: relative; z-index: 20; padding-top: 50px; }

.stars-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#ffcf53 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.relative-z { position: relative; z-index: 20; }

.section-title {
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.year-badge-2026 {
    display: inline-block;
    position: relative;
    background: rgba(0, 17, 43, 0.8);
    border: 2px solid var(--gold);
    padding: 10px 40px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 207, 83, 0.3);
    backdrop-filter: blur(5px);
}

.year-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 5px;
}

.sparkles {
    position: absolute;
    top: -15px; right: -15px;
    font-size: 0.8rem;
    animation: twinkle 1.5s infinite alternate;
}

.sparkles i:nth-child(2) { margin: 0 5px; font-size: 1rem; animation-delay: 0.5s; }
@keyframes twinkle { 0% { opacity: 0.5; } 100% { opacity: 1; } }

/* ========================================================= */
/* --- TARJETAS DE EMPRESAS --- */
/* ========================================================= */
.company-card-horizontal {
    display: flex;
    flex-direction: row;
    background: linear-gradient(135deg, rgba(0, 60, 121, 0.6) 0%, rgba(0, 17, 43, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    height: 300px; 
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

.gift-ribbon {
    position: absolute;
    top: -5px; left: -5px;
    width: 50px; height: 50px;
    background: var(--xmas-red);
    border-bottom-right-radius: 50px;
    z-index: 10;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}
.gift-ribbon::after {
    content: '';
    position: absolute;
    top: 15px; left: 15px;
    width: 15px; height: 15px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.company-card-horizontal:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    border-color: var(--gold);
}

.card-img-left {
    width: 40%;
    background-color: var(--xmas-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 2px solid rgba(255,255,255,0.1);
}

.card-img-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content-right {
    width: 60%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    padding-left: 30px;
}

.company-name {
    color: var(--gold);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-desc {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; 
}

.button-group-top {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-action:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.btn-action.email { background: var(--xmas-brown); }
.btn-action.whatsapp { background: #25d366; }

.btn-catalog {
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Fichas (Móvil) */
@media (max-width: 768px) {
    .company-card-horizontal { 
        flex-direction: column; 
        height: auto; 
        min-height: auto;
    }
    .card-img-left { 
        width: 100%; 
        height: 200px; 
        border-right: none; 
        border-bottom: 2px solid rgba(255,255,255,0.1); 
    }
    .card-content-right { 
        width: 100%; 
        padding: 20px; 
        justify-content: flex-start; 
    }
    .company-desc {
        display: block; 
        -webkit-line-clamp: unset; 
        overflow: visible; 
        flex-grow: 0;
    }
    .button-group-top { 
        flex-direction: column; 
        gap: 10px; 
    }
    .company-name { 
        font-size: 1.4rem; 
        white-space: normal; 
    }
}

/* ========================================================= */
/* --- SECCIÓN ALIADOS (AQUÍ SE AÑADE LA ALTURA) --- */
/* ========================================================= */
#aliados2 {
    position: relative;
    z-index: 20;
    padding: 80px 0;
    background: rgba(0, 5, 13, 0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 
  =======================================================
  ATENCIÓN: AQUÍ ESTÁ LA ALTURA DEL CARRUSEL
  Si quieres que la tarjeta sea más alta en celular, 
  cambia el valor de "min-height" (ahora está en 520px).
  En PC, cambia el "height" que está en la línea 442.
  =======================================================
*/
.fixed-size-card {
    width: 100%;
    max-width: 800px;
    height: auto; /* Se adapta al contenido */
    min-height: 520px; /* <--- AQUÍ SE AÑADE LA ALTURA EN CELULAR (Aumentado de 480 a 520) */
    margin: 0 auto;
    display: flex;
}

.glass-card {
    background: rgba(0, 17, 43, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 6px solid var(--xmas-green);
    border-right: 6px solid var(--xmas-red);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
    width: 100%;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.corner-gift {
    position: absolute;
    top: -15px; right: -15px;
    background: var(--gold);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--xmas-dark-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transform: rotate(15deg);
    border: 3px solid var(--xmas-red);
}

.glass-logo {
    max-height: 120px;
    background: var(--xmas-beige);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    object-fit: contain;
}

/* Ajuste específico para CELULAR en Aliados */
@media (max-width: 768px) {
    .glass-card {
        padding: 35px 20px !important;
    }
    .glass-logo {
        max-height: 90px;
        margin-bottom: 15px !important;
    }
    .glass-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    .glass-card p {
        font-size: 1rem !important;
        margin-bottom: 25px;
    }
    .glass-card .btn-xmas {
        width: 100%;
        padding: 12px;
    }
}

/* Ajuste para PC (Altura Fija) */
@media (min-width: 992px) {
    .fixed-size-card {
        height: 450px; /* <--- AQUÍ ESTÁ LA ALTURA EN PC */
        min-height: 450px;
    }
    .glass-card {
        padding: 40px !important;
    }
    .glass-card .btn-xmas {
        width: auto;
        padding: 12px 40px;
    }
}

/* --- Footer Navideño --- */
.xmas-footer {
    background: rgba(0, 5, 13, 0.95);
    padding: 60px 0 20px;
    position: relative;
    z-index: 20;
    border-top: 5px solid var(--xmas-green);
    color: white;
    overflow: hidden;
}

.footer-snow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 20px;
    background-image: radial-gradient(circle at 10px 0, #fff 5px, transparent 6px);
    background-size: 20px 20px;
    opacity: 0.8;
}

.footer-logo { filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }

/* --- Decoración de Reno y Regalos (Solo PC) --- */
.reindeer-decor {
    position: absolute;
    top: 10px; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tree-left {
    position: absolute;
    bottom: 10%; left: 5%;
    font-size: 5rem;
    color: rgba(29, 46, 25, 0.4);
}

.gift-left {
    position: absolute;
    top: 20%; left: 15%;
    font-size: 3rem;
    color: rgba(166, 11, 8, 0.3);
    transform: rotate(-15deg);
    animation: floatDecor 5s infinite alternate;
}

.gift-right {
    position: absolute;
    bottom: 20%; right: 5%;
    font-size: 4rem;
    color: rgba(255, 207, 83, 0.2);
    transform: rotate(15deg);
    animation: floatDecor 7s infinite alternate-reverse;
}

.reindeer {
    position: absolute;
    top: 40%; right: 25%;
    font-size: 5rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(207, 202, 191, 0.15);
    animation: floatDecor 6s infinite;
}

.reindeer i:first-child { color: rgba(166, 11, 8, 0.4); font-size: 1.5rem; position: absolute; left: -15px; top: 15px; }
.reindeer i:last-child { font-size: 6rem; }

/* --- REDES SOCIALES --- */
.xmas-tree-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    position: relative;
}

.tree-star {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px var(--gold));
    animation: pulseStar 1.5s infinite alternate;
}

@keyframes pulseStar {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.tree-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.tree-row:last-child { margin-bottom: 0; }

.social-tree {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px !important;
    height: 55px !important;
    max-width: 55px;
    max-height: 55px;
    flex-shrink: 0;
    
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--xmas-green);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.social-tree:hover {
    transform: translateY(-5px) scale(1.15);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    background: var(--xmas-dark-red);
}

.social-tree.fb:hover { background: #1877F2; border-color: #1877F2; }
.social-tree.tw:hover { background: #000000; border-color: #ffffff; }
.social-tree.ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: transparent; }
.social-tree.in:hover { background: #0A66C2; border-color: #0A66C2; }
.social-tree.tk:hover { background: #000000; border-color: #25F4EE; }
.social-tree.yt:hover { background: #FF0000; border-color: #FF0000; }

/* --- AJUSTE REDES SOCIALES EN PC --- */
@media (min-width: 992px) {
    .xmas-tree-social {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 0;
    }
    
    .tree-star { display: none; }
    .tree-row { display: contents; }
    
    .social-tree {
        border-radius: 12px;
        width: 50px !important;
        height: 50px !important;
    }
}

/* Centrado en celular */
@media (max-width: 991px) {
    .xmas-tree-social { align-items: center; }
}

/* --- Botón WhatsApp Flotante --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 3px solid var(--xmas-beige);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
    background-color: #1eb955;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.8);
}