:root {
    --negro: #000000;
    --amarillo: #f3ce37;
    --blanco: #ffffff;
    --naranja: #f8b133;
    --gris: #ede6d9;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--blanco);
    background-color: var(--naranja);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--amarillo);
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    background-color: var(--negro);
    color: var(--blanco);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    /* Eliminados los márgenes negativos para escritorio, no son necesarios con la nueva estructura */
    margin-left: 0; 
    margin-right: auto;
}

.navbar .logo img {
    height: 35px;
    filter: brightness(1.2);
}

.navbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar .nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar .nav-menu ul li a {
    color: var(--blanco);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.navbar .nav-menu ul li a:hover {
    color: var(--amarillo);
}

.navbar .nav-menu .btn-nav {
    background-color: var(--naranja);
    color: var(--negro);
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
}

/* Ocultar botones y menú de móvil en versión de escritorio */
.btn-nav-mobile,
.menu-toggle {
    display: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ==================================================== */
/* Hero Section */
/* ==================================================== */
.hero-section {
    background-image: url(../img/nosotros/portada-nosotros.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--naranja);
    text-align: center;
    padding: 150px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-section h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
    color: var(--naranja);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 0;
    color: var(--blanco);
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================================================== */
/* Misión y Visión Section */
/* ==================================================== */
.mision-vision-section {
    background-image: url(../img/nosotros/fondo-N1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: var(--blanco);
}

.mision-vision-top-line,
.mision-vision-bottom-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
    z-index: 1;
}

.mision-vision-top-line {
    top: 0;
}

.mision-vision-bottom-line {
    bottom: 0;
}

.mision-vision-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 0 auto;
}

.mision-block,
.vision-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mision-vision-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.vertical-bar {
    width: 10px;
    height: 70px;
    background-color: var(--naranja);
}

.mision-block h2,
.vision-block h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.0em;
    font-weight: 800;
    color: var(--blanco);
    margin: 0;
    line-height: 1;
}

.mision-block p,
.vision-block p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--blanco);
    padding-left: 28px;
}

/* ==================================================== */
/* Valores Section */
/* ==================================================== */
.valores-section {
    background-image: url(../img/nosotros/fondo-N2.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.valores-bottom-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
    z-index: 1;
}

.valores-list hr {
    border: var(--naranja) solid 1px;
    margin-top: -20px;
    margin-bottom: -20px;
}

.valores-top-line {
    top: 0;
}

.valores-bottom-line {
    bottom: 0;
}

.valores-header {
    text-align: center;
    margin-bottom: 50px;
}

.valores-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    font-weight: 800;
    color: var(--naranja);
    position: relative;
    display: inline-block;
}

.valores-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: flex-start;
}

.valores-about-us {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
}

.valores-about-us h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--naranja);
    margin-bottom: 20px;
}

.valores-about-us p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    line-height: 1.8;
    color: var(--blanco);
    margin-bottom: 20px;
}

.valores-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
}

.valores-image img {
    max-width: 100%;
    height: auto;
    border-radius: none;
}

.valores-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 20px;
}

.valor-item {
    display: flex;
    flex-direction: column;
}

.valor-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--naranja);
    margin-bottom: 10px;
}

.valor-item p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8em;
    line-height: 1.6;
    color: var(--blanco);
}


/* ------------------------------------------- */
/* --- Estilos Generales para el Carrusel --- */
/* ------------------------------------------- */
.credentials-section {
    background-image: url(../img/nosotros/fondo-N3.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 0;
    text-align: center;
    color: var(--naranja);
    position: relative; /* CLAVE para el posicionamiento de las líneas */
    overflow: hidden; /* Esto también es importante para las líneas */
}

.credentials-section h2 {
    color: var(--naranja);
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* ------------------------------------------- */
/* --- Líneas decorativas (arriba y abajo) --- */
/* ------------------------------------------- */
.credentials-top-line,
.credentials-bottom-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
    z-index: 1;
}

.credentials-top-line {
    top: 0;
}

.credentials-bottom-line {
    bottom: 0;
}

/* ------------------------------------------- */
/* --- Contenedor Principal del Carrusel --- */
/* ------------------------------------------- */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
    margin: 0 auto;
    position: relative;
    padding: 0 20px; 
}

/* ------------------------------------------- */
/* --- Vista y Contenedor de las Tarjetas --- */
/* ------------------------------------------- */
.carousel-viewport {
    width: 940px; 
    overflow: hidden; 
}

.card-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

/* ------------------------------------------- */
/* --- Estilos de cada Tarjeta --- */
/* ------------------------------------------- */
.credential-card {
    background-color: #333;
    border: 2px solid var(--naranja);
    border-radius: 10px;
    width: 300px;
    min-height: 400px;
    padding: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credential-card:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* ------------------------------------------- */
/* --- Estilos de las Flechas --- */
/* ------------------------------------------- */
.carousel-button {
    background-color: transparent;
    border: none;
    color: var(--naranja);
    font-size: 3em;
    cursor: pointer;
    padding: 0 10px;
    z-index: 10;
    transition: color 0.3s ease;
}

.carousel-button:hover {
    color: #fff;
}

/* ------------------------------------------- */
/* --- Estilos de la Imagen y Contenido --- */
/* ------------------------------------------- */
.card-image {
    width: 100%;
    height: 200px; 
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}

.card-content {
    text-align: center;
    color: #fff;
    margin-bottom: 25px; 
}

.card-content h3 {
    font-size: 1.5em;
    color: var(--naranja);
    margin-bottom: 10px;
}

.short-description {
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.4;
    text-align: left;
}

/* ------------------------------------------- */
/* --- Estilos del Contenido Expandible --- */
/* ------------------------------------------- */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 15px;
    color: #eee;
    font-size: 0.85em;
    text-align: left;
    line-height: 1.6;
}

.credential-card.expanded .expandable-content {
    max-height: 300px;
}

/* ------------------------------------------- */
/* --- Estilos del Botón de Expansión --- */
/* ------------------------------------------- */
.expand-button {
    background-color: var(--naranja);
    border: none;
    color: var(--negro);
    font-size: 1.4em;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 15px;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.expand-button:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.expand-button span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.credential-card.expanded .expand-button span {
    transform: rotate(180deg);
}

@media (max-width: 960px) {
    /* Mantenemos el carrusel, pero con el ancho correcto */
    .carousel-container {
        /* Permite que el contenedor de las flechas y el carrusel se adapte */
        justify-content: space-between;
        align-items: center;
        padding: 0 10px; /* Reduce el padding para pantallas pequeñas */
    }

    .carousel-viewport {
        /* Ocupa el espacio central entre las flechas */
        width: calc(100% - 80px); /* Ajusta el ancho para dejar espacio a las flechas */
        overflow-x: scroll; /* Habilita el desplazamiento horizontal */
        scroll-snap-type: x mandatory; /* Habilita el "snap" para que las tarjetas se ajusten */
        -webkit-overflow-scrolling: touch; /* Mejora el desplazamiento en iOS */
    }

    .card-wrapper {
        /* Las tarjetas se mantienen en una sola línea horizontal */
        flex-wrap: nowrap;
        gap: 20px; /* Espacio entre cada tarjeta */
        width: max-content; /* Se ajusta al contenido para el scroll */
    }

    .credential-card {
        /* Ajustamos el tamaño de la tarjeta para que quepa en el viewport */
        width: 260px;
        min-height: 350px;
        scroll-snap-align: center; /* Cada tarjeta se ajusta al centro del viewport */
    }

    /* Opcional: Estilo para las flechas en móvil */
    .carousel-button {
        display: block; /* Aseguramos que las flechas estén visibles si las quieres */
        font-size: 2em; /* Las hacemos más pequeñas para que quepan */
        padding: 0 5px;
    }
}
/* ==================================================== */
/* Equipo Section */
/* ==================================================== */
.equipo-section {
    background-image: url(../img/nosotros/fondo-N4.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: var(--naranja);
}

.equipo-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.equipo-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    font-weight: 800;
    color: var(--naranja);
    margin-bottom: 20px;
}

.equipo-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.equipo-miembro {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.equipo-imagen-wrapper {
    width: 300px;
    height: 300px;
    position: relative;
    margin-bottom: 25px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.equipo-imagen-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
}

.equipo-miembro h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 0;
}

.equipo-miembro .titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-style: normal;
    margin-bottom: 0;
}

.equipo-miembro .rol {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-style: italic;
    margin-bottom: 20px;
}

.expand-arrow {
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--naranja);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expand-arrow.expanded {
    transform: rotate(180deg);
}

.member-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding: 0 15px;
}

.member-description.expanded {
    max-height: 700px;
    padding: 30px 20px;
}

.member-description p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    line-height: 1.6;
}

/* ==================================================== */
/* Metodología Section */
/* ==================================================== */
.metodologia-section {
    background-image: url(../img/nosotros/fondo-N5.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: var(--negro);
}

.metodologia-top-line,
.metodologia-bottom-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
    z-index: 1;
}

.metodologia-top-line {
    top: 0;
}

.metodologia-bottom-line {
    bottom: 0;
}

.metodologia-header {
    text-align: center;
    margin-bottom: 60px;
}

.metodologia-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    font-weight: 800;
    margin: 0;
}

.metodologia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.metodologia-image-container {
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.metodologia-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.metodologia-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metodologia-item hr {
    border: var(--negro) solid 1px;
    margin-top: 0;
    margin-bottom: 20px;
}

.metodologia-item {
    border-bottom: 2px solid var(--negro);
    padding-bottom: 20px;
}

.metodologia-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    justify-content: space-between;
}

.metodologia-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
}

.metodologia-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding: 0 45px 0 0;
    margin-top: 10px;
}

.metodologia-description.expanded {
    max-height: 220px;
    padding: 10px 80px 0 0;
}

.metodologia-item .expand-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2em;
    border: none;
}

.metodologia-item .expand-arrow.expanded {
    transform: rotate(180deg);
}

/* ==================================================== */
/* Footer */
/* ==================================================== */
.footer {
    width: 100%;
    background-image: url(../img/nosotros/fondo-N6.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-top {
    display: flex;
    justify-content: flex-start;
    padding: 60px 10%;
    color: var(--negro);
    position: relative;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 150px;
    position: relative;
}

.footer-logo a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.footer-logo-image {
    position: absolute;
    left: 100px;
    width: 150px;
    max-height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo-image:hover {
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    gap: 100px;
    margin-left: 300px;
    margin-top: -2%;
}

.link-column h4 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--negro);
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column li {
    margin-bottom: 8px;
}

.link-column li a {
    font-size: 0.95em;
    color: var(--negro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-column li a:hover {
    color: var(--amarillo);
    cursor: pointer;
}

.footer-social-media {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px 0;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--negro);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--naranja);
    font-size: 1.5em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--blanco);
    color: var(--negro);
}

.footer-bottom {
    text-align: center;
    padding: 20px 5%;
    color: var(--negro);
    font-size: 0.9em;
}

/* ==================================================== */
/* Media Queries */
/* ==================================================== */

@media (max-width: 1024px) {
    /* Navbar */
    .navbar .logo {
        margin-left: 0;
    }
    
    .navbar .nav-menu ul {
        gap: 20px;
    }

    /* Hero Section */
    .hero-section {
        padding: 120px 10px;
        min-height: 50vh;
    }
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section p {
        font-size: 1.1em;
    }

    /* Misión y Visión */
    .mision-vision-content {
        gap: 40px;
    }
    .mision-block h2,
    .vision-block h2 {
        font-size: 2.5em;
    }
    .mision-block p,
    .vision-block p {
        font-size: 1.1em;
    }
    .vertical-bar {
        height: 60px;
    }

    /* Valores */
    .valores-header h2 {
        font-size: 3em;
    }
    .valores-content {
        grid-template-columns: 1fr 1fr;
    }
    .valores-image {
        padding: 20px;
    }
    .valores-list {
        padding-left: 0;
    }
    .valores-about-us {
        padding-right: 0;
    }
    .valor-item h3 {
        font-size: 1.2em;
    }
    .valor-item p {
        font-size: 0.9em;
    }

    /* Equipo */
    .equipo-header h2 {
        font-size: 3em;
    }
    .equipo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .equipo-imagen-wrapper {
        width: 250px;
        height: 250px;
    }
    .equipo-miembro h4 {
        font-size: 1.2em;
    }
    .equipo-miembro .rol {
        font-size: 0.9em;
    }

    /* Metodología */
    .metodologia-header h2 {
        font-size: 3em;
    }
    .metodologia-content {
        grid-template-columns: 1fr;
    }
    .metodologia-image-container {
        padding: 0;
    }
    .metodologia-list {
        gap: 15px;
    }
    .metodologia-item h3 {
        font-size: 1.2em;
    }
    .metodologia-description.expanded {
        padding: 10px 0 0 0;
    }

    /* Footer */
    .footer-top {
        padding: 40px 5%;
    }
    .footer-links {
        gap: 50px;
        margin-left: 200px;
    }
}

@media (max-width: 767px) {
    /* Estilos para móviles (teléfonos) */
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .navbar .logo {
        margin: 0;
        margin-right: auto;
    }

    .navbar .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--negro);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        text-align: center;
        flex-direction: column;
        z-index: 999; /* Asegurar que el menú desplegable esté sobre otros elementos */
    }

    .navbar .nav-menu.active {
        height: auto;
        display: flex;
    }
    
    .navbar .nav-menu ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        gap: 0;
    }

    .navbar .nav-menu ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar .nav-menu ul li a {
        display: block;
        padding: 15px 0;
    }
    
    /* Mostrar y estilizar el contenedor de acciones de móvil */
    .navbar-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .navbar .nav-menu .btn-nav {
        /* Oculta el botón de navegación del menú principal */
        display: none;
    }
    
    .btn-nav-mobile {
        /* Muestra y estiliza el botón de navegación específico para móvil */
        display: block;
        background-color: var(--naranja);
        color: var(--negro);
        padding: 8px 18px;
        border-radius: 5px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9em;
        border: none;
        cursor: pointer;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--blanco);
        font-size: 1.5em;
        cursor: pointer;
    }

    /* Hero Section */
    .hero-section {
        padding: 80px 10px;
        min-height: 40vh;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1em;
    }

    /* Misión y Visión */
    .mision-vision-content {
        gap: 30px;
    }
    .mision-block h2,
    .vision-block h2 {
        font-size: 2em;
    }
    .mision-block p,
    .vision-block p {
        font-size: 1em;
        padding-left: 0;
    }
    .vertical-bar {
        height: 50px;
    }
    .mision-vision-title-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .vertical-bar {
        width: 100%;
        height: 5px;
        margin-bottom: 10px;
    }
    .mision-block p, .vision-block p {
        text-align: center;
    }

    /* Valores */
    .valores-header h2 {
        font-size: 2.5em;
    }
    .valores-content {
        grid-template-columns: 1fr;
    }
    .valores-about-us,
    .valores-list {
        text-align: center;
        padding-right: 0;
        padding-left: 0;
    }
    .valores-image {
        padding: 20px 0;
    }
    .valores-about-us h3,
    .valor-item h3 {
        font-size: 1.2em;
    }

    /* Equipo */
    .equipo-header h2 {
        font-size: 2.5em;
    }
    .equipo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .equipo-imagen-wrapper {
        width: 250px;
        height: 250px;
        margin-bottom: 15px;
    }
    .equipo-miembro h4 {
        font-size: 1.5em;
    }
    .equipo-miembro .rol {
        font-size: 1em;
    }
    .member-description.expanded {
        padding: 20px;
    }

    /* Metodología */
    .metodologia-header h2 {
        font-size: 2.5em;
    }
    .metodologia-content {
        grid-template-columns: 1fr;
    }
    .metodologia-image-container {
        order: -1; /* Coloca la imagen arriba en móvil */
        padding: 0;
    }
    .metodologia-description.expanded {
        padding: 10px 0 0 0;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        align-items: center;
        padding: 40px 5%;
        text-align: center;
    }
    .footer-logo {
        height: auto;
        margin-bottom: 20px;
    }
    .footer-logo-image {
        position: static;
        width: 120px;
        margin-left: 0;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }
    .link-column h4 {
        margin-bottom: 10px;
    }
    .footer-social-media {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 0.9em;
    }

    /* Misión y Visión */
    .mision-block h2,
    .vision-block h2 {
        font-size: 1.8em;
    }
    .vertical-bar {
        height: 40px;
    }
    
    /* Valores */
    .valores-header h2,
    .equipo-header h2,
    .metodologia-header h2 {
        font-size: 2em;
    }
    
    .equipo-imagen-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .metodologia-item h3 {
        font-size: 1.2em;
    }
    
    /* Footer */
    .footer-logo-image {
        width: 100px;
    }
}