@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Sans 3', sans-serif;
    text-decoration: none;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Asegura que los elementos no excedan el ancho */
.container,
section,
div {
    max-width: 100%;
    box-sizing: border-box;
}

/* Para imágenes y elementos embebidos */
img,
iframe,
embed,
object,
video {
    max-width: 100%;
    height: auto;
}

/* Inicio de menu */
/* Estilos generales del encabezado (Header) */
header {
    background-color: #2a2a2a;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 120px;
    transition: top 0.3s ease-in-out;
}

header.hidden {
    top: -120px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo img {
    height: 130px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #fff;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #383838;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1001;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: #d0d0d0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.dropdown-content a:hover {
    background-color: #484848;
    color: #fff;
}

.menu_button {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--clr);
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    padding-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.menu_button__icon-wrapper {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    position: relative;
    color: var(--clr);
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.menu_button:hover {
    background: #000;
    color: #FFD700;
    border-color: #FFD700;
}

.menu_button:hover .menu_button__icon-wrapper {
    background-color: #FFD700;
    color: #000;
}

.menu_button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
}

.menu_button:hover .menu_button__icon-svg:first-child {
    transition: transform 0.3s ease-in-out;
    transform: translate(150%, -150%);
}

.menu_button:hover .menu_button__icon-svg--copy {
    transition: transform 0.3s ease-in-out 0.1s;
    transform: translate(0);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu_button {
        width: fit-content;
        flex-shrink: 0;
        align-self: flex-start;
    }

    .nav-links {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background-color: #2a2a2a;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .logo img {
        height: 120px;
    }

    .nav-links.active {
        left: 0;
    }


    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        background-color: #333;
        width: 100%;
        z-index: auto;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    body.no-scroll {
        overflow: hidden;
        padding-top: 120px;
    }


    body.no-scroll header {
        position: fixed;
        top: 0;
        left: 0;
    }
}

/*Fin de menu*/
.fondo {
    width: 100%;
    min-height: auto;
    background-color: #656161;
    background-size: cover;
    background-attachment: fixed;
    padding: 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.contenedor-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem;
    gap: 3rem;
}

.card.texto {
    height: auto;
    width: 90%;
    max-width: 480px;
    margin: 0;
    padding: 1.8rem;
    text-align: center;
    background-color: transparent;
    border-radius: 0;
}

/* LOADER DE PALABRAS */
.loader {
    font-weight: 500;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.8em;
    overflow: hidden;
    flex-shrink: 0;
}

.loader p {
    color: #fff;
    margin-right: 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.words {
    height: 1.8em;
    overflow: hidden;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    min-width: min-content;
    /* Asegura que el ancho sea el del contenido más largo */
    max-width: fit-content;
    /* Asegura que el ancho sea el del contenido */
}

.words::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    z-index: 20;
}

.word {
    display: block;
    height: 1.8em;
    line-height: 1.8em;
    padding-left: 0.2rem;
    color: #fff;
    animation: spin_4991 12s infinite;
    white-space: nowrap;
    transform-origin: center center;
    padding-right: 1.5em;
    /* Más espacio a la derecha */
    box-sizing: border-box;
}

/* Keyframes para una transición más suave y cíclica */
@keyframes spin_4991 {
    0% {
        transform: translateY(0%);
    }

    14% {
        transform: translateY(0%);
    }

    16.66% {
        transform: translateY(-100%);
    }

    30.66% {
        transform: translateY(-100%);
    }

    33.32% {
        transform: translateY(-200%);
    }

    47.32% {
        transform: translateY(-200%);
    }

    49.98% {
        transform: translateY(-300%);
    }

    63.98% {
        transform: translateY(-300%);
    }

    66.64% {
        transform: translateY(-400%);
    }

    80.64% {
        transform: translateY(-400%);
    }

    83.30% {
        transform: translateY(-500%);
    }

    97.30% {
        transform: translateY(-500%);
    }

    100% {
        transform: translateY(-600%);
    }
}

.gsr {
    color: #fff;
    font-size: 2.5rem;
    padding-left: 0;
    padding-top: 0.6rem;
    margin-top: 0.6rem;
}

.subtitle {
    color: #fff;
    padding-left: 0;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* BOTÓN EXPLORAR */
.button2 {
    background-color: #fedc51;
    color: black;
    width: 7.5em;
    height: 2.5em;
    border: none;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button2:hover {
    background-color: #fec200;
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.button2 svg {
    width: 1.2em;
    margin-right: 0.4em;
    position: static;
    transition: all 0.3s ease;
}

.button2:hover svg {
    transform: translateX(3px);
}

.text2 {
    margin: 0;
}

/* SECCIÓN DE IMÁGENES */
.image-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 90%;
    max-width: 450px;
    height: auto;
    align-items: center;
    position: relative;
}

.image-showcase img {
    width: 100%;
    max-width: 400px;
    height: 280px;
    border-radius: 1.5rem;
    border: 0.3rem solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.6s ease, border-color 0.3s ease;
    filter: brightness(0.95);
}

.image-showcase img:hover {
    transform: scale(1.02);
    filter: brightness(1);
    border-color: #fedc51;
}

/* Efecto de fade-in/out para imágenes */
.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 1s ease-in;
}

/* MEDIA QUERIES */

/* Media Query para TABLETAS (min-width: 769px) */
@media (min-width: 769px) {
    .fondo {
        padding: 0;
        min-height: 75vh;
        /* Re-apply min-height for larger screens if desired */
    }

    .contenedor-flex {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0 4rem;
        gap: 4rem;
    }

    .card.texto {
        width: 45%;
        max-width: 550px;
        text-align: left;
        padding: 3rem;
    }

    .loader {
        margin-top: 3.5rem;
        font-size: 1.6rem;
        justify-content: flex-start;
        height: 2.2em;
    }

    .loader p {
        margin-right: 0.8rem;
    }

    .words {
        height: 2.2em;
        min-width: min-content;
        /* Asegura que el ancho sea el del contenido más largo */
        max-width: fit-content;
        /* Asegura que el ancho sea el del contenido */
    }

    .word {
        height: 2.2em;
        line-height: 2.2em;
        padding-left: 0.4rem;
        padding-right: 1.5em;
        /* Más espacio a la derecha */
    }

    .gsr {
        font-size: 3.5rem;
        margin-top: 1.2rem;
    }

    .subtitle {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .button2 {
        width: 7em;
        height: 2.2em;
        font-size: 0.9rem;
        margin: 0;
        align-self: flex-start;
    }

    .button2 svg {
        width: 1em;
    }

    .image-showcase {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 45%;
        max-width: 600px;
        height: 380px;
        position: relative;
        gap: 0;
    }

    .image-showcase img {
        width: auto;
        height: auto;
        position: absolute;
        filter: brightness(1);
    }

    #main-img {
        width: 250px;
        height: 250px;
        top: 0;
        left: 0;
        z-index: 3;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
        transform: rotate(-3deg);
    }

    #secondary-img {
        width: 220px;
        height: 220px;
        top: 70px;
        right: 0;
        z-index: 2;
        transform: rotate(5deg);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    #tertiary-img {
        width: 190px;
        height: 190px;
        bottom: 0;
        left: 60px;
        z-index: 1;
        transform: rotate(-8deg);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    }

    .image-showcase img:hover {
        transform: rotate(0deg) scale(1.03);
        filter: brightness(1);
    }

    #secondary-img:hover {
        transform: rotate(0deg) scale(1.02);
    }

    #tertiary-img:hover {
        transform: rotate(0deg) scale(1.01);
    }
}

/* Media Query para ESCRITORIO GRANDE (min-width: 1200px) */
@media (min-width: 1200px) {
    .fondo {
        min-height: 55rem;
    }

    .contenedor-flex {
        gap: 5rem;
        padding: 0 5rem;
    }

    .card.texto {
        width: 40%;
        max-width: 600px;
    }

    .loader {
        font-size: 1.8rem;
        height: 2.5em;
        justify-content: flex-start;
    }

    .words {
        height: 2.5em;
        min-width: min-content;
        /* Asegura que el ancho sea el del contenido más largo */
        max-width: fit-content;
        /* Asegura que el ancho sea el del contenido */
    }

    .word {
        height: 2.5em;
        line-height: 2.5em;
        padding-left: 0.4rem;
        padding-right: 1.5em;
        /* Más espacio a la derecha */
    }

    .gsr {
        font-size: 4.5rem;
    }

    .subtitle {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .button2 {
        width: 8em;
        height: 2.5em;
        font-size: 1rem;
        align-self: flex-start;
    }

    .image-showcase {
        width: 50%;
        max-width: 700px;
        height: 450px;
    }

    .image-showcase img {
        border-radius: 2rem;
    }

    #main-img {
        width: 320px;
        height: 320px;
        top: 0;
        left: 0;
        transform: rotate(-5deg);
    }

    #secondary-img {
        width: 280px;
        height: 280px;
        top: 90px;
        right: 0px;
        transform: rotate(7deg);
    }

    #tertiary-img {
        width: 230px;
        height: 230px;
        bottom: 0;
        left: 100px;
        transform: rotate(-10deg);
    }
}

/* Fin inicio de pagina*/
.separador {
    background-color: #848484;
    width: 100%;
    height: 2.5rem;
    margin-bottom: 30px solid #848484;
}

/* Ventana apple */
.gsr-fondo2 {
    width: 100%;
    min-height: 100vh;
    background-color: #656161;
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-top: 5rem;    
    padding-bottom: 5rem;
}

.gsr-main-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.gsr-applewin-card {
    display: flex;
    flex-direction: column;
    background-color: #011522;
    border-radius: 0.625rem;
    box-shadow: 0 0 3rem rgba(0, 0, 0, 5);
    border: 0.25rem solid #fff;
    overflow: hidden;
    max-width: 42.5rem;
    max-height: 35rem;
    width: fit-content;

    height: fit-content;

    position: relative;
    transition: width 0.4s ease, height 0.4s ease;
    box-sizing: border-box;
}

.gsr-applewin-titlebar {
    height: 3rem;
    background-color: #201e1e;
    border-radius: 0.625rem 0.625rem 0 0;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    flex-shrink: 0;
    justify-content: space-between;
    padding-right: 1rem;
}

.gsr-applewin-tools {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.gsr-applewin-circle {
    padding: 0 0.3125rem;
}

.gsr-applewin-btn {
    display: inline-block;
    width: 1.56rem;
    height: 1.56rem;
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3), inset 0 0 0.25rem rgba(0, 0, 0, 0.2);
    border: 0.0625rem solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    position: relative;
}

.gsr-applewin-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gsr-applewin-red {
    background-color: #f7605d;
}

.gsr-applewin-yellow {
    background-color: #fbd660;
}

.gsr-applewin-green {
    background-color: #6edc6c;
}

.gsr-applewin-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    font-weight: 700;
    font-size: 1.125rem;
}

.gsr-applewin-red::after {
    content: "‹";
    font-size: 1.5rem;
    color: #5a1e1d;
    left: 47%;
    top: 46%;
}

.gsr-applewin-yellow::after {
    content: "‖";
    font-size: 0.8rem;
    color: #5a4a1d;
    letter-spacing: -0.0625rem;
    top: 48%;
}

.gsr-applewin-green::after {
    content: "›";
    font-size: 1.5rem;
    color: #1d5a1e;
    left: 53%;
    top: 46%;
}

.gsr-applewin-btn.paused::after {
    opacity: 0.7;
}

.gsr-applewin-yellow.paused::after {
    content: "▷";
    font-size: 0.75rem;
    left: 52%;
    top: 48%;
    color: #5a4a1d;
}

.gsr-applewin-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #011522;
    overflow: hidden;
}

.gsr-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    will-change: transform;
}

.gsr-slides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    user-select: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.gsr-applewin-card:hover .gsr-slides img {
    opacity: 0.3;
}

.gsr-button_apple {
    cursor: pointer;
    padding: 0.375rem 1rem;
    font-size: 1rem;
    color: #fff;
    border: 0.125rem solid black;
    border-radius: 1.5rem;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow: hidden;
    width: auto;
    z-index: 9999;
    position: relative;
}

.gsr-button_apple::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: inherit;
    scale: 0;
    z-index: -1;
    background-color: var(--hover-color, rgb(193, 163, 98));
    transition: all 0.6s ease;
}

.gsr-button_apple:hover::before {
    scale: 3;
}

.gsr-button_apple:hover {
    color: #fff;
    scale: 1.1;
    box-shadow: 0 0 1.25rem rgba(193, 163, 98, 0.4);
}

.gsr-button_apple:active {
    scale: 1;
}

.gsr-texto-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    max-width: 80%;
    pointer-events: none;
    user-select: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Responsive font sizes for text overlay */
    font-size: 1rem;
    /* Default font size */
}

.gsr-texto-central h2 {
    font-size: 1.8em;
    /* Relative to parent .gsr-texto-central */
    margin-bottom: 0.5em;
}

.gsr-texto-central h3 {
    font-size: 1.2em;
    /* Relative to parent .gsr-texto-central */
}

/* Adjust font sizes for smaller screens */
@media (max-width: 768px) {

    .gsr-fondo2 {
        min-height: 70vh;
        padding: 2rem;
        /* Podrías reducirlo un poco en pantallas muy pequeñas si 1rem es mucho */
    }

    .gsr-applewin-card {
        max-width: 95%;
        /* Make it take almost full width on small screens */
        max-height: 80vh;
        /* Limit height to 80% of viewport height */
        width: 95vw;
        /* Fill viewport width */
        height: 70vh;
        /* Fill viewport height */
    }

    .gsr-applewin-titlebar {
        height: 2.5rem;
        /* Slightly smaller title bar */
        padding-left: 0.5rem;
        padding-right: 0.75rem;
    }

    .gsr-applewin-btn {
        width: 1.2rem;
        /* Smaller buttons */
        height: 1.2rem;
    }

    .gsr-applewin-btn::after {
        font-size: 0.9rem;
    }

    .gsr-applewin-red::after,
    .gsr-applewin-green::after {
        font-size: 1.2rem;
    }

    .gsr-applewin-yellow::after {
        font-size: 0.7rem;
    }

    .gsr-button_apple {
        padding: 0.25rem 0.75rem;
        font-size: 0.85rem;
    }

    .gsr-texto-central {
        font-size: 0.85rem;
        /* Base font size for text overlay on small screens */
    }

    .gsr-texto-central h2 {
        font-size: 1.6em;
    }

    .gsr-texto-central h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .gsr-applewin-card {
        max-width: 98%;
        max-height: 85vh;
        width: 98vw;
        height: 75vh;
    }

    .gsr-applewin-titlebar {
        height: 2rem;
        padding-left: 0.3rem;
        padding-right: 0.5rem;
    }

    .gsr-applewin-btn {
        width: 1rem;
        height: 1rem;
    }

    .gsr-applewin-btn::after {
        font-size: 0.7rem;
    }

    .gsr-applewin-red::after,
    .gsr-applewin-green::after {
        font-size: 1rem;
    }

    .gsr-applewin-yellow::after {
        font-size: 0.6rem;
    }

    .gsr-button_apple {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }

    .gsr-texto-central {
        font-size: 0.75rem;
    }

    .gsr-texto-central h2 {
        font-size: 1.4em;
    }

    .gsr-texto-central h3 {
        font-size: 1em;
    }
}

.gsr-applewin-card.img-1:hover #gsrTextoCentral {
    opacity: 1;
}

.gsr-applewin-card.img-2:hover #gsrTextoCentral2 {
    opacity: 1;
}

.gsr-applewin-card.img-3:hover #gsrTextoCentral3 {
    opacity: 1;
}

/*Fin de ventana apple*/

/* Inicio de informacion*/
:root {
    --bg-dark-primary: #333333;
    --bg-dark-secondary: #444444;
    --bg-dark-tertiary: #666666;
    --text-color-light: #FFFFFF;
    --text-color-medium: #B0B0B0;
    --accent-yellow: #fedc51;
    --section-tag-color: #c8b241;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --shadow-dark: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Estilos Generales y del Contenedor Principal */

.fondo3 {
    width: 100%;
    min-height: 45rem;
    background-color: #656161;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.opaco {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-section-wrapper {
    width: 100%;
    max-width: 75rem;
    margin: auto;
    background-color: var(--bg-dark-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dark);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    overflow: hidden;
    position: relative;
}

/* Columna Visual (donde estará el quiz y opcionalmente las imágenes) */
.info-visual-column {
    position: relative;
    background-color: var(--bg-dark-tertiary);
    min-height: 25rem;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Estilos para las imágenes de fondo en info-visual-column */
.info-visual-column .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.info-visual-column .bg-image.fade-in {
    opacity: 1;
}

.info-visual-column .bg-image.fade-out {
    opacity: 0;
}

/* Contenedor del Quiz */
.quiz-container {
    background-color: var(--bg-dark-secondary);
    padding: 20px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-dark);
    max-width: 25rem;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.quiz-container h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--accent-yellow);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.quiz-question {
    background-color: var(--bg-dark-tertiary);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    text-align: left;
    margin-bottom: 8px;
}

.quiz-question p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.quiz-options label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color-medium);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.quiz-options label:hover {
    color: var(--accent-yellow);
}

.quiz-options input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--accent-yellow);
}

#submitQuiz {
    background-color: var(--accent-yellow);
    color: var(--bg-dark-primary);
    padding: 10px 25px;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 8px;
}

#submitQuiz:hover {
    background-color: #d1b43b;
    transform: translateY(-2px);
}

.quiz-results {
    margin-top: 15px;
    background-color: var(--bg-dark-tertiary);
    padding: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.quiz-results p {
    font-size: 1rem;
    color: var(--text-color-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.quiz-results .call-to-action-button {
    display: inline-flex;
    text-align: center;
    justify-content: center;
}

/* Columna de Contenido (información) */
.info-content-column {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-dark-secondary);
}

.info-content-column .section-tag {
    margin-bottom: 15px;
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.info-content-column h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-color-light);
    margin-bottom: 25px;
}

.info-content-column p {
    color: var(--text-color-medium);
    margin-bottom: 30px;
    max-width: 500px;
}

/* Botón de Llamada a la Acción */
.call-to-action-button {
    background-color: var(--accent-yellow);
    color: var(--bg-dark-primary);
    padding: 10px 14px;
    border: none;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    width: fit-content;
}

.call-to-action-button:hover {
    background-color: #d1b43b;
    transform: translateY(-2px);
}

/* MEDIA QUERIES PARA RESPONSIVIDAD */
@media (max-width: 992px) {
    .info-section-wrapper {
        grid-template-columns: 1fr;
    }

    .info-visual-column {
        min-height: 25rem;
        padding: 30px;
    }

    .info-content-column {
        padding: 40px 30px;
        padding-top: 30px;
        text-align: center;
        align-items: center;
    }

    .info-content-column h2 {
        font-size: 2.5rem;
    }

    .info-content-column p {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .call-to-action-button {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .fondo3 {
        padding: 30px 15px;
        min-height: auto;
    }

    .info-section-wrapper {
        border-radius: var(--border-radius-md);
    }

    .info-content-column {
        padding: 30px 20px;
    }

    .info-content-column h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .info-content-column p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .fondo3 {
        padding: 20px 10px;
    }

    .info-visual-column {
        min-height: 20rem;
        padding: 15px;
    }

    .quiz-container {
        padding: 15px 15px;
        max-width: 18rem;
        gap: 6px;
    }

    .quiz-container h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .quiz-question {
        padding: 10px 12px;
        margin-bottom: 5px;
    }

    .quiz-question p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .quiz-options label {
        font-size: 0.78rem;
        margin-bottom: 5px;
    }

    .quiz-options input[type="radio"] {
        margin-right: 6px;
    }

    #submitQuiz {
        padding: 8px 15px;
        font-size: 0.88rem;
        margin-top: 6px;
    }

    .quiz-results {
        padding: 15px;
        margin-top: 10px;
    }

    .quiz-results p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .call-to-action-button {
        padding: 8px 10px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .info-content-column {
        padding: 25px 15px;
    }

    .info-content-column .section-tag {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .info-content-column h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .info-content-column p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}


/* Fin informacion */

.demo-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #e0e0e0;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
}

.demo-section.bottom {
    margin-top: 30px;
    margin-bottom: 0;
    background-color: #e0e0e0;
    border-top: 1px solid #ccc;
    border-bottom: none;
}

.demo-section h2 {
    color: #555;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.demo-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Your provided CSS starts here */
.benefits-container {
    background-color: #333333;
    padding: 40px 30px;
    margin: 50px auto;
    /* Centra y da espacio */
    border-radius: 18px;
    text-align: center;
    max-width: 1100px;
    width: 90%;
    min-width: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    flex-shrink: 1;
    flex-grow: 0;
    flex-basis: auto;
}

.benefits-title {
    color: #fedc51;
    font-size: 2.3rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-item {
    background-color: #444444;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 3.5rem;
    color: #fedc51;
    margin-bottom: 12px;
}

.benefit-item h4 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.benefit-item p {
    color: #B0B0B0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefits-button {
    display: inline-block;
    background-color: #fedc51;
    color: #333333;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.benefits-button:hover {
    background-color: #d1b43b;
    transform: translateY(-3px) scale(1.02);
}

@media (max-width: 768px) {
    .benefits-container {
        padding: 30px 20px;
        margin: 25px auto;
        width: 95%;
    }

    .benefits-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .benefits-grid {
        gap: 20px;
        margin-bottom: 20px;
    }

    .benefit-item i {
        font-size: 3rem;
    }

    .benefit-item h4 {
        font-size: 1.1rem;
    }

    .benefit-item p {
        font-size: 0.9rem;
    }

    .benefits-button {
        padding: 10px 22px;
        font-size: 0.95rem;
    }

}

@media (max-width: 480px) {
    .benefits-title {
        font-size: 1.6rem;
    }

    .benefit-item i {
        font-size: 2.5rem;
    }

    .benefit-item h4 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.85rem;
    }

    .benefits-button {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .benefits-container {
        padding: 20px 10px;
        width: 98%;
        margin: 20px auto;
    }

    .benefits-title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .benefits-grid {
        gap: 15px;
        margin-bottom: 15px;
    }

    .benefit-item {
        padding: 15px;
    }

    .benefit-item i {
        font-size: 2rem;
    }

    .benefit-item h4 {
        font-size: 0.95rem;
    }

    .benefit-item p {
        font-size: 0.75rem;
    }

    .benefits-button {
        font-size: 0.75rem;
        padding: 8px 15px;
    }
}

.fondo4 {
    width: 100%;
    height: auto;
    background-color: #656161;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
    flex-shrink: 1;
    flex-grow: 0;
    flex-basis: auto;
}

/* Footer */
.main-footer {
    background-color: #333333;
    color: #B0B0B0;
    padding: 60px 20px 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 80px; 
    padding-bottom: 40px;
    border-bottom: 1px solid #444444;
    align-items: start;
}


.footer-links,
.footer-contact,
.footer-social {
    text-align: center;
}

.footer-brand .logo2 {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    padding-top: 0;
}

.footer-brand {
    text-align: center;
    margin-top: -55px;
}

.footer-brand .logo2 img {
    height: 160px;
    width: auto;
    max-width: 100%;
    filter: brightness(0) invert(1); 
    transition: transform 0.3s ease;
}

.footer-brand .logo2 img:hover {
    transform: scale(1.05);
}

.footer-brand .brand-description {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
    margin-left: auto;
}

.footer-container h4 {
    color: #FFFFFF;
    font-size: 1.15rem;
    margin-bottom: 20px; 
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #B0B0B0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: #fedc51;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* --- INICIO DEL CAMBIO --- */
    color: #B0B0B0 !important; /* Asegura el color que ya tenías */
    -webkit-text-fill-color: #B0B0B0 !important; /* Clave para iOS */
    text-decoration: none !important; /* Elimina el subrayado */
    /* --- FIN DEL CAMBIO --- */
}

.footer-contact i {
    color: #fedc51;
    font-size: 1.1rem;
}

/* --- Social Icons --- */
.footer-social .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 10px;
    gap: 15px;
}

.example-2 {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.example-2 .icon-content {
    margin: 0 8px;
    position: relative;
    list-style: none;
}

.example-2 .icon-content .tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 100;
    min-width: 100px;
    text-align: center;
    pointer-events: none;
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

.example-2 .icon-content a {
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #FFFFFF;
    background-color: #444444;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
    overflow: hidden;
    border-radius: 50%;
}

.example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgba(0, 0, 0, 0.2);
    color: white;
    border-radius: 50%;
}

.example-2 .icon-content a svg {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
}

.example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
    height: 100%;
}

.example-2 .icon-content a[data-social="whatsapp"] .filled,
.example-2 .icon-content a[data-social="whatsapp"]~.tooltip {
    background-color: #128c7e;
}

.example-2 .icon-content a[data-social="facebook"] .filled,
.example-2 .icon-content a[data-social="facebook"]~.tooltip {
    background-color: #3b5998;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"]~.tooltip {
    background: linear-gradient(45deg,
                #405de6,
                #5b51db,
                #b33ab4,
                #c135b4,
                #e1306c,
                #fd1f1f);
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #B0B0B0;
}

/* --- Media Queries para responsividad del Footer --- */
@media (max-width: 768px) {
    .main-footer {
        padding: 30px 20px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px; 
        align-items: center; 
    }

    .footer-brand {
        margin-top: 0; 
        text-align: center;
    }

    .footer-brand .logo2 {
        justify-content: center;
    }

    .footer-brand .brand-description {
        margin-left: auto;
        margin-right: auto;
        margin-top: 0; 
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-social {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-social .social-icons,
    .footer-social .example-2 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 25px 15px 15px;
    }

    .footer-brand .logo2 img {
        height: 150px;
    }

    .footer-brand .brand-description,
    .footer-links ul li a,
    .footer-contact p {
        font-size: 0.85rem;
    }

    .footer-container h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .example-2 .icon-content a {
        width: 40px;
        height: 40px;
    }

    .example-2 .icon-content a svg {
        width: 22px;
        height: 22px;
    }

    .example-2 .icon-content .tooltip {
        font-size: 12px;
    }
}