:root {
    --azul-petroleo: #203346;
    --verde-ingles: #1b4d3e;
    --gris-claro: #f4f7f6;
    --texto: #333;
    --blanco: #ffffff;
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Estilo para el logo fijo */
.fixed-logo {
    position: fixed;
    top: 30px;
    left: 20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    z-index: 99999999;
    /* Asegura que esté sobre otros elementos */
    border: 5px solid transparent;
    /* Crea el espacio del borde */
    background-origin: border-box;
    background-clip: content-box, border-box;
    background-image:
        url('fede-3.jpeg'),
        linear-gradient(323deg, rgba(255, 255, 255, 1) 0%, rgba(27, 77, 62, 1) 36%);
    /* El gradiente del borde */
    transition: 0.4s ease-in-out;
}


@media (hover: hover) {
    .fixed-logo:hover {
        width: 400px;
        height: 400px;
        transition: 2s;
        background-image:
            url('fede-2.jpeg'),
            linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
        background-origin: border-box;
        background-clip: content-box, border-box;
        border: 5px solid transparent;
    }
}

.titulo-fijo {
    position: fixed;
    top: 1vh;
    left: 34vw;
    font-family: Garamond, 'Times New Roman', Times, serif;
    font-size: 1.4em;
    z-index: 9999999;
    text-align: center;
    align-self: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #ffffff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.9);
}


body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background-color: var(--gris-claro);
    color: var(--texto);
    overflow-x: hidden;
    /* Prevenir scroll horizontal */
    width: 100%;

}

/* Navegación Fija Lateral */
.fixed-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    background: rgba(0, 79, 146, 0.953);
    opacity: 0.7;
    padding: 20px 10px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fixed-nav a {
    color: white;
    font-size: 20px;
    transition: 0.3s;

}

.fixed-nav:hover {
    opacity: 1;
    transition: 2s;
    left: 20px;
    transition: 16s ease;
    top: 50%;
    background-image:
        linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

.fixed-nav a:hover {
    color: rgba(0, 79, 146, 0.953);
}

/* Layout Principal */
.container {
    width: 100%;
    position: relative;
}

/* Secciones de pantalla completa */
.full-vh-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0;
    /* Reset padding for full screen sections */
}

/* #seccion1 empty ruleset removed */

#seccion1 {
    background: url('puerto-madero.png') center/cover no-repeat;
    background-attachment: fixed;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#seccion2 {
    background: url('movilidad.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.companies-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 20px 40px 20px;
}

.companies-carousel h2 {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: black 0px 0px 25px;
    margin-top: -60px !important;
    padding-bottom: 50px;
    margin-bottom: 5px;
}

/* Contenedor del movimiento */
.carousel-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    /* Cambiamos a flex para centrar el track adentro */
    justify-content: center;
}

.carousel-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    align-items: center;
    max-width: 900px;
}

/* Estilo para las imágenes */
.carousel-track img {
    max-width: 300px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: invert(100%) grayscale(100%) brightness(200%) drop-shadow(0px 0px 10px rgb(0, 0, 0));
    transition: 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-track img:hover {
    filter: grayscale(0%) drop-shadow(0px 0px 10px rgb(255, 255, 255));
    ;
    transform: scale(1.2);
}

.carousel-track .logo-holando {
    max-height: 90px;
}



.carousel-track {
    gap: 30px;
    /* Espacio entre cada nombre de compañía */
    white-space: nowrap;
    /* Evita que los nombres salten de línea */
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    /* Si quieres que se mueva, añade una animación aquí */
}

.carousel-track span {
    display: inline-block;
}

#seccion3 {
    background: url('empresas.jpg') center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Esto hace que el video cubra todo el espacio sin deformarse */
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Lo coloca detrás del contenido */
}


.profile-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    color: white;
    width: 50vw;
    padding: 10px 20px 40px 20px;
    z-index: 99;
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.profile-info {
    flex: 1;
    /* Toma el espacio disponible */
    padding-right: 30px;
    font-size: 2rem;
    /* Espacio para que no toque la foto */
    text-shadow: black 0px 0px 10px;
}

.aapas-logo {
    max-width: 240px;
    height: auto;
    margin-top: 5px;
    transition: transform 0.3s;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
}

.aapas-link:hover .aapas-logo {
    transform: scale(1.05);
}

.ssn-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.ssn-logo {
    max-width: 250px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
    /* Ensure it's white to match the profile style */
    opacity: 0.9;
}

.ssn-phone {
    font-size: 0.8em !important;
    margin: 0 !important;
    font-family: sans-serif;
    letter-spacing: 1px;
    opacity: 0.8;
}

.profile-photos {
    flex: 0 0 300px;
    /* Define un ancho fijo para la zona de la foto */
    text-align: right;
}

.profile-photos img {
    width: 350px;
    /* La imagen se adapta a los 300px del contenedor */
    max-width: 550px;
    /* Tamaño máximo de la foto */
    border-radius: 10%;
    /* Si quieres que la foto sea circular */
    box-shadow: rgb(255, 255, 255) 0px 0px 10px;
    user-select: none;
    -webkit-user-drag: none;
}



#seccion4 {
    background: url('familia.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    padding: 20px;
    background: transparent;
    border-radius: 10px;
    max-width: 90%;
    text-align: center;
    opacity: 1;
}

/* Formulario Estilo AAPAS */
.quote-form-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    max-width: 20vw;
    max-height: 90vh;
    z-index: 1000;
    overflow-y: auto;
    transition: 0.4s ease-in-out;
    opacity: 0.8;
    border-radius: 12px;


}

@media (hover: hover) {
    .quote-form-container:hover {
        scale: 1.1;
        transition: 0.4s ease-in-out;
        right: 30px;
        opacity: 1;
    }
}





.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    /* Espacio entre el checkbox/radio y el texto */
    margin-bottom: 5px;
    /* Espacio entre cada opción */
    width: fit-content;
    font-size: 0.85em;
    line-height: 1.2;
}

.radio-group label input {
    margin-top: 2px;
}

.radio-group p,
.checkbox-group p {
    margin-bottom: 8px;
    margin-top: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.quote-form {
    width: 200px;
    box-sizing: border-box;
    background: linear-gradient(323deg, rgba(255, 255, 255, 0.397) 0%, rgba(0, 78, 146, 0.445) 36%);
    backdrop-filter: blur(50px);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    border-top: 5px solid var(--verde-ingles);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s ease-in-out;

}

@media (hover: hover) {
    .quote-form:hover {
        background: linear-gradient(323deg, rgb(255, 255, 255) 0%, rgb(0, 78, 146) 36%);
        transition: 1s;
        border-radius: 12px;
        background-image:
            linear-gradient(323deg, rgb(255, 255, 255) 0%, rgb(0, 78, 146) 36%),
            linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
        background-origin: border-box;
        background-clip: padding-box, border-box;
        border: 3px solid transparent;
    }
}





ul {
    list-style-type: none;
    /* Esta es la forma más compatible */
    padding: 0;
    /* Elimina el padding predeterminado */
    font-size: 1.5em;
    ;
}



.quote-form input,
.quote-form select {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}

.quote-form input[type="radio"],
.quote-form input[type="checkbox"] {
    width: auto;
    margin-right: 0;
    margin-bottom: 0;
}

.quote-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(323deg, rgba(255, 255, 255, 1) 0%, rgba(27, 77, 62, 1) 36%);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.quote-form button:hover {
    background: #1b4d3e;
    box-shadow: white 0px 0px 25px;
    transition: 0.3s;
}




/* Cards de Servicios */
.content-area {
    width: 100%;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(323deg, rgba(255, 255, 255, 0.397) 0%, rgba(0, 78, 146, 0.445) 36%);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    color: var(--texto);
    border: 3px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(5px);

}

.card:hover {
    transform: translateY(-5px);
    background-image:
        linear-gradient(323deg, rgba(255, 255, 255, 0.219) 0%, rgba(0, 78, 146, 0.377) 36%),
        linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 3px solid transparent;
    box-shadow: white 0px 0px 25px;
    backdrop-filter: blur(5px);
}

.card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 20px;
}

.card-body h4 {
    color: white;
    font-size: 2em;
    margin-top: 0;
}

.card-body p {
    color: rgb(255, 255, 255);
    font-size: 1.2em;
    margin-top: 0;
}

li {
    list-style-type: none;
    /* Esta es la forma más compatible */
}


/* FAQ Acordeón */
.accordion {
    background: linear-gradient(323deg, rgba(255, 255, 255, 0.603) 0%, rgba(0, 78, 146, 0.747) 36%);
    border-radius: 10px;
    max-width: 700px;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    text-shadow: black 0px 0px 10px;
}

.accordion-header {
    width: 100%;
    padding: 15px;
    text-align: left;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1.5em;
    text-shadow: black 0px 0px 10px;
    cursor: pointer;
    color: white;
}

.accordion-content {
    display: none;
    padding: 15px 15px;
    line-height: 1.6;
    margin: 0;
    font-size: 20px;
}

.quote-form-container h3 {
    color: white;
    text-shadow: none;
    text-align: center;
    margin-bottom: 0px;
    font-size: 25px;
    text-shadow: rgb(255, 255, 255) 0px 0px 10px;
}




























/* --- MEDIA QUERY PARA TABLETS (768px a 1024px) --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    ul {
        list-style-type: none;
        padding: 0;
        font-size: 1.2em;
    }

    .content-wrapper {
        max-width: 100%;
        padding: 10vw 10vw 10vw 12vw;
    }

    #seccion1 {
        padding-top: 15vh;
    }

    .fixed-nav:hover {
        opacity: 1;
        transition: 2s;
        left: auto;
        right: 10px;
        padding: 15px 10px;
        gap: 20px;
        top: auto;
        bottom: 5vh;
        transform: none;
        background-image:
            linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    }

    /* Logo Circular y Posicionamiento Específico Tablet */
    .fixed-logo {
        width: 300px;
        height: 300px;
        top: 12vh;
        left: calc(50% - 150px);
        border-radius: 50%;
        transition: 0.4s ease-in-out;
        z-index: 10;
        background-color: var(--azul-petroleo);
        border: 5px solid transparent;
        background-origin: border-box;
        background-clip: content-box, border-box;
        background-image: url('fede-3.jpeg'), linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    }

    .fixed-logo.scrolled {
        width: 100px;
        height: 100px;
        top: auto;
        bottom: 5vh;
        left: calc(5vw + 190px);
        /* Positioned to the right of the form button (which is at left: 5vw, width: 180px approx) */
        right: auto;
        transform: none;
        transition: 0.4s ease-in-out;
        border-width: 3px;
        background-color: transparent;
        background-image: url('fede-2.jpeg'), linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
        z-index: 99999999;
    }

    .fixed-logo:hover:not(.scrolled) {
        width: 400px;
        height: 400px;
        left: calc(50% - 200px);
    }

    .titulo-fijo {
        position: absolute;
        font-size: 1.1em;
        left: 0;
        right: 0;
        top: 2vh;
        width: 100%;
        text-align: center;
    }

    .fixed-nav {
        left: auto;
        right: 10px;
        padding: 15px 10px;
        gap: 20px;
        top: auto;
        bottom: 5vh;
        transform: none;
    }

    .fixed-nav a {
        font-size: 24px;
    }

    .quote-form-container {
        left: 5vw;
        right: auto;
        width: 180px;
        top: auto;
        bottom: 5vh;
        /* Unified with logo scrolled position */
        transform: none !important;
        opacity: 1;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: opacity 0.3s ease, background 0.3s ease;
        /* No position transitions */
        z-index: 1000;
    }

    .quote-form-container:not(.active):hover {
        transform: none !important;
        scale: 1 !important;
        top: auto !important;
        bottom: 5vh !important;
        left: 5vw !important;
        right: auto !important;
        opacity: 1 !important;
        transition: none !important;
    }


    .quote-form-container.active {
        position: fixed;
        width: 60vw;
        max-width: 500px;
        height: auto;
        left: 12vw;
        top: 12vh;
        transform: none !important;
        bottom: auto;
        right: auto;
        background: rgba(32, 51, 70, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 0;
        overflow-y: auto;
        z-index: 99999999;
    }



    .quote-form {
        width: 100%;
        padding: 10px;
        display: none;
        margin-top: 15px;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .quote-form-container.active .quote-form {
        display: block;
    }

    .quote-form-container h3 {
        font-size: 1.2em;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        text-wrap: nowrap;
        transition: 0.3s;
        background: linear-gradient(323deg, rgba(255, 255, 255, 1) 0%, rgba(27, 77, 62, 1) 36%);
        border-radius: 5px;
        padding: 5px 15px;
        color: white;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        margin-bottom: 15px;
    }

    .quote-form input,
    .quote-form button {
        padding: 8px;
        font-size: 0.8em;
    }

    .carousel-track,
    .carousel-container,
    .companies-carousel {
        padding-left: 15px;
        padding-right: 15px;
    }

    .companies-carousel h2 {
        font-size: 1.8rem;
        margin-top: 0 !important;
    }

    .profile-card {
        flex-direction: column;
        width: 90vw;
        text-align: center;
        padding: 20px 50px;
    }

    .profile-info {
        padding-right: 0;
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .profile-photos {
        display: none;
    }

    .full-vh-section {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }

    .grid-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* Tablet forced row */
        gap: 20px;
        align-items: center;
        justify-content: center;
        padding-top: 20vh;
    }

    .card {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Corrected from center */
        text-align: center;
        padding: 15px 10px;
    }


    .card-body h4 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }



    #seccion4,
    #seccion4 h2 {
        text-align: center;
    }

    .accordion {
        width: 90%;
        max-width: 600px;
        margin: 0 auto;
    }
}














































/* --- MEDIA QUERY PARA MÓVILES (Hasta 767px) --- */
@media screen and (max-width: 767px) {


    ul {
        list-style-type: none;
        /* Esta es la forma más compatible */
        padding: 0;
        /* Elimina el padding predeterminado */
        font-size: 1.2em;
        ;
    }


    .content-wrapper {
        max-width: 100%;
        padding: 10vw 10vw 10vw 12vw;
    }

    #seccion1 {
        padding-top: 15vh;
    }

    .fixed-nav:hover {
        opacity: 1;
        transition: 2s;
        left: auto;
        right: 10px;
        padding: 15px 10px;
        gap: 20px;
        top: auto;
        bottom: 5vh;
        transform: none;
        background-image:
            linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    }


    /* Logo fijo: Reducido para no tapar contenido */
    .fixed-logo {
        width: 80vw;
        height: 40vh;
        /* Ajuste inicial grande */
        top: 20vh;
        left: 10vw;
        border-radius: 50%;
        border-width: 0;
        z-index: 10;
        /* Más alto que todo */
        background-color: var(--azul-petroleo);
        /* Fondo solido al inicio */
        border: 5px solid transparent;
        /* Crea el espacio del borde */
        background-origin: border-box;
        background-clip: content-box, border-box;
        background-image:
            url('fede-3.jpeg'),
            linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
        /* El gradiente del borde */
        transition: 0.5s ease-out;
    }

    .fixed-logo.scrolled {
        width: 100px;
        height: 100px;
        top: auto;
        bottom: 5vh;
        left: 70vw;
        transform: translate(-50%, 0);
        border-radius: 50%;
        border-width: 3px;
        background-color: transparent;
        background-image:
            url('fede-2.jpeg'),
            linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
        z-index: 99999999;
    }

    .fixed-logo:hover {
        /* Desactivar hover en mobile o ajustarlo */
        width: 120px;
        height: 120px;
    }

    /* Título fijo: Ajustado para que no choque con el logo */
    .titulo-fijo {
        position: absolute;
        font-size: 1.1em;
        left: 0;
        right: 0;
        top: 2vh;
        width: 100%;
        text-align: center;
    }

    /* Navegación lateral: La movemos abajo o la hacemos más pequeña */
    .fixed-nav {
        left: auto;
        right: 10px;
        padding: 15px 10px;
        gap: 20px;
        top: auto;
        bottom: 5vh;
        transform: none;
    }

    .fixed-nav a {
        font-size: 24px;
    }

    /* Formulario de contacto: En móvil suele ser mejor que no sea fijo 
       o que ocupe menos. Aquí lo mantengo fijo pero más pequeño y abajo */
    .quote-form-container {
        right: auto;
        left: 5vw;
        width: 140px;
        max-width: 35vw;
        top: auto;
        bottom: 7vh;
        transform: none;
        opacity: 1;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    /* Active State (Modal) */
    .quote-form-container.active {
        position: fixed;
        width: 90vw;
        max-width: 380px;
        height: auto;
        left: 5vw;
        right: 5vw;
        top: 2vh !important;
        bottom: auto !important;
        transform: none !important;
        background: rgba(32, 51, 70, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 0;
        max-height: 95vh;
        overflow-y: auto;
        z-index: 99999999;
    }

    .quote-form {
        width: 100%;
        padding: 10px;
        display: none;
        /* Hidden by default */
        margin-top: 15px;
        background: transparent;
        /* Container has bg */
        box-shadow: none;
        /* Container has shadow */
        border: none;
    }

    .quote-form-container.active .quote-form {
        display: block;
        /* Show when container is active */
    }

    /* Clean up old is-visible class if it exists */
    .quote-form.is-visible {
        display: block;
    }

    .quote-form-container h3 {
        font-size: 1.1em;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        white-space: nowrap;
        transition: 0.3s;
        background: linear-gradient(323deg, rgba(255, 255, 255, 1) 0%, rgba(27, 77, 62, 1) 36%);
        border-radius: 12px 12px 0 0;
        padding: 10px 15px;
        color: white;
        width: 100%;
        margin: 0;
        margin-bottom: 10px;
    }

    .radio-group p,
    .checkbox-group p {
        margin-bottom: 4px;
        margin-top: 2px;
        font-size: 0.85em;
    }

    .quote-form-container:hover,
    .quote-form-container h3:hover {
        transform: none !important;
        scale: 1 !important;
        transition: none !important;
        background: auto !important;
    }


    /* Carrusel de empresas: Cambiamos de 3 columnas a 2 o 1 */
    .carousel-track {
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .carousel-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .carousel-track img {
        max-width: 140px;
    }

    .companies-carousel {
        padding-left: 15px;
        padding-right: 15px;
    }

    .companies-carousel h2 {
        font-size: 1.8rem;
        margin-top: 0 !important;
    }

    /* Perfil: De horizontal a vertical */
    .profile-card {
        flex-direction: column;
        width: 90vw;
        text-align: center;
        padding: 20px 50px;
    }

    .profile-info {
        padding-right: 0;
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .profile-photos {
        display: none;
    }

    .profile-photos img {
        width: 100%;
        max-width: 250px;
    }

    /* Secciones generales */
    .full-vh-section {
        height: auto;
        /* En móvil es mejor dejar que el contenido dicte el alto */
        min-height: 100vh;
        padding: 60px 0;
    }

    .grid-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
        /* Mantienes tu lógica */
        gap: 20px;
        align-items: center;
        justify-content: center;
        padding-top: 50vh
    }

    .card {
        width: 300px;

    }


    /* Ajuste de fuentes para legibilidad */
    .card-body h4 {
        font-size: 1.5em;
    }

    .card-body p {
        font-size: 1em;
    }

    .accordion-header {
        font-size: 1.1em;
    }


    #seccion4 {
        text-align: center;
        background-attachment: scroll !important;
    }

    #seccion4 h2 {
        text-align: center;
        width: 100%;
    }

    .accordion {
        width: 300px;
        margin: 0 auto 120px auto;
        /* Center the accordion and add bottom margin */
    }




}

/* --- Custom Cursor --- */
* {
    cursor: none;
    /* Hide default cursor */
}

#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: #ffffff;
    /* White dot */
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    /* Above everything */
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    will-change: transform;
}

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
    /* Just below the dot */
}

@media (max-width: 1024px) {

    #cursor-dot,
    #cursor-canvas {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

/* Hover State */
body.cursor-hover #cursor-dot {
    width: 20px;
    /* Larger on hover */
    height: 20px;
    background-color: #c5a059;
}

/* --- Text Selection --- */
::selection {
    background-color: #c5a059;
    /* Gold */
    color: #ffffff;
    /* White text */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    /* Slight shadow for readability */
}

::-moz-selection {
    background-color: #c5a059;
    /* Gold */
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Estilos globales para videos de fondo */
video {
    pointer-events: none;
    /* Evita que el usuario pueda hacer clic o interactuar con el video */
    object-fit: cover;
    /* Asegura que cubra todo el fondo sin deformarse */
}