/* RESET Y GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'sourceSansProRegular', Arial, sans-serif;
    background: #fff;
    color: #333;
}

/* HEADER Y FOOTER (básico, puedes mejorar en sus propios archivos) */


/* SECCIÓN VIDEO */
.video-section {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}
.video {
    width: 100vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.video img {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SECCIÓN INFORMACIÓN */
section.info {
    width: 100vw;
    margin: 0;
    padding: 0;
}
section.info .container {
    width: 100vw;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    gap: 0;
}
section.info .container .cont {
    width: 50%;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
section.info .container .cont > * {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
section.info .container .contImg {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    max-height: 60vw;
    min-height: 220px;
    overflow: hidden;
}
section.info .container .contInfo {
    width: 100%;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: justify;
}
section.info .container .contInfo h2 {
    font-family: 'ludotek';
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}
.contInfo p {
    padding: 10px;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

/* BOTÓN UNIVERSAL */
.center-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0 auto;
    background: none;
    border: none;
}
.center-btn > .equipo-link {
    font-size: 1.1rem;
    color: #fff;
    background: #C48B3F;
    padding: 15px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.3s;
}
.center-btn > .equipo-link:hover {
    background: #003973;
}

/* PORTADA SLIDER */
.portada {
    width: 100vw;
    background: #fff;
    padding: 0;
}
.slider-frame {
    width: 100vw;
    height: 80vh;
    overflow: hidden;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.slider-frame ul {
    display: flex;
    animation: slide 16s infinite;
    width: 400vw;
    list-style: none;
}
.slider-frame li {
    width: 100vw;
    flex-shrink: 0;
}
.slider-frame img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes slide {
    0% { margin-left: 0; }
    20% { margin-left: 0; }
    25% { margin-left: -100vw; }
    45% { margin-left: -100vw; }
    50% { margin-left: -200vw; }
    70% { margin-left: -200vw; }
    75% { margin-left: -300vw; }
    95% { margin-left: -300vw; }
    100% { margin-left: 0; }
}

/* COMPARADOR */
section.comparador {
    width: 100vw;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #fff;
}
.comparador-container {
    width: 80vw;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 30px 20px;
}
#comparador {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 300px;
    max-width: 700px;
    margin: 0 auto;
    background: #eee;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}
#comparador img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    -webkit-user-drag: none;
    user-drag: none;
}
#comparador #flotante {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    width: 50%;
    pointer-events: none;
}
#comparador #flotante img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}
#comparador #agarre {
    position: absolute;
    top: calc(50% - 50px);
    height: 100px;
    width: 15px;
    background: #C7893E;
    box-shadow: 2px 0px 6px #003973;
    border-radius: 3px;
    z-index: 10;
    cursor: col-resize;
    pointer-events: auto;
    right: calc(50% - 7.5px);
}

/* CARTA 3D FLIP */
.flip-card {
    background: transparent;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 2/3;
    perspective: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 100%;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 80%;
    min-height: 0;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4,0.2,0.2,1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.flip-card-front {
    background: #fff;
    z-index: 2;
}
.flip-card-back {
    background: #003973;
    color: #fff;
    transform: rotateY(180deg);
    z-index: 1;
}
.flip-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: 100%;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    section.info .container {
        flex-direction: column;
        padding: 20px 0;
    }
    section.info .container .cont {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }
    section.info .container .cont > * {
        width: 98%;
    }
    .comparador-container {
        width: 98vw;
        max-width: 98vw;
        padding: 10px 0;
    }
}
@media (max-width: 900px) {
    .video {
        height: 60vw;
    }
    .slider-frame {
        height: 60vw;
    }
    .comparador-container {
        width: 100vw;
        max-width: 100vw;
        padding: 5px 0;
    }

}
@media (max-width: 768px) {
    .video {
        height: 80vw;
    }
    .slider-frame {
        height: 50vw;
    }
    .comparador-container {
        padding: 2px 0;
    }

}
@media (max-width: 425px) {
    .video {
        height: 75vw;
    }
    .slider-frame {
        height: 55vw;
    }
    .comparador-container {
        padding: 1px 0;
    }

    h2 {
        font-size: 1.2rem;
        margin-top: 10px;
    }
    h3, h4 {
        font-size: 1rem;
        padding: 2px;
    }
}
@media (max-width: 375px) {
    .video {
        height: 70vw;
    }
    .slider-frame {
        height: 40vw;
    }
    .comparador-container {
        padding: 0;
    }
    section.info .container .contImg {
        height: 250px;
    }
    h2 {
        font-size: 1rem;
        margin-top: 5px;
    }
    h3, h4 {
        font-size: 0.9rem;
        padding: 1px;
    }
}
@media (max-width: 320px) {
    .video {
        height: 60vw;
    }
    .slider-frame {
        height: 50vw;
    }
    .comparador-container {
        padding: 0;
    }

    section.info .container .contInfo {
        width: 100%;
        max-width: 100vw;
        padding: 20px 5px;
    }
    section.info .container .contInfo h2 {
        font-size: 0.8rem;
        margin-top: 2px;
        text-align: center;
        width: 100%;
    }
    h3, h4 {
        font-size: 0.7rem;
        padding: 0;
    }
}
