html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

/* Reset de márgenes y paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo global */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #E0E0E0;
    /* Fondo cambiado a blanco */
    color: #000000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden; /* Asegura que no haya scroll horizontal */
}

/* --- Estilos para el Header Fijo a la Izquierda --- */
header.fixed-left-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 7cm;
    height: 100vh;
    background-color: #E0E0E0;
    border-right: 2px solid #000000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

header .header-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo {
    width: 90%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%; /* Esto hace la imagen redonda */
}

header nav {
    width: 100%;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 27px; /* Mayor separación entre elementos del menú */
}

header nav ul li a {
    background-color: transparent;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem; /* Texto más pequeño */
    font-weight: bold;
    text-transform: uppercase;
    padding: 0;
    border: none;
    border-radius: 0;
    display: block;
    width: auto;
    text-align: center;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    background-color: transparent;
    color: #AE63FF; /* Color de acento al pasar el cursor */
    border-color: transparent;
}

/* -- Ajustes para el Main Content -- */
main {
    margin-left: 7cm; /* Ajustado para el ancho del header */
    max-width: 1200px; /* Aumentado el ancho máximo */
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

/* --- Estilos para la sección "Quiénes Somos" --- */
#quienes-somos {
    position: relative;
    left: 0;
    width: 100vw;
    margin-left: calc(-7cm); /* Ajuste para que ocupe todo el ancho */
    background: url('../img/opr.jpeg') no-repeat center center;
    background-size: cover;
    padding: 200px 20px;
}

#quienes-somos .section-content {
    max-width: 1200px;
    margin: 0 auto; /* Centra el texto */
    text-align: center;
    padding-top: 20px;
    margin-left: auto; /* Mueve el título y las cajas a la derecha */
}

.quienes-somos-paragraphs-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    margin-left: 4cm; /* Mueve las cajas de párrafo a la derecha */
}

.paragraph-box {
    background-color: #ffffff;
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Efecto hover para la tarjeta de Quienes Somos */
.paragraph-box:hover {
    background-color: #AE63FF; /* Color de fondo al pasar el mouse */
    color: #ffffff; /* Color de texto al pasar el mouse */
}

.paragraph-box p {
    margin: 0;
    text-align: center;
    transition: color 0.3s ease;
}

.paragraph-box:hover p {
    color: #ffffff;
}

/* -- Ajustes para las secciones y el footer -- */
main section,
footer {
    margin-left: 20px;
    margin-right: 20px;
}

section h2 {
    font-size: 2.2rem;
    color: #000000;
    margin-bottom: 15px;
}

section h3 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 10px;
}

section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #000000;
}

/* Nuevas clases para fondos transparentes */
.bg-white-transparent {
    background-color: #ffffff;
}

.bg-black-transparent {
    background-color: #ffffff;
}

.bg-grey-transparent {
    background-color: #ffffff;
}

/* Estilos generales para las divs de contenido y de imagen */
main section .section-content,
main section .section-image {
    flex: 1;
    min-width: 350px;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

/* Centrar texto dentro de .section-content */
main section .section-content h2,
main section .section-content h3,
main section .section-content p {
    text-align: center;
}

/* Asegurar el color de texto para el fondo blanco */
.bg-black-transparent .section-content h2,
.bg-black-transparent .section-content h3,
.bg-black-transparent .section-content p {
    color: #000000;
}

main section .section-image img {
    width: 85%;
    height: 85%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Estilos para el layout con texto a la izquierda, imagen a la derecha (slide desde la derecha) */
main section.layout-left-text {
    flex-direction: row;
}

main section.layout-left-text .section-content {
    transform: translateX(100px);
    opacity: 0;
}

main section.layout-left-text .section-image {
    transform: translateX(100px);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

main section.layout-left-text.visible .section-content,
main section.layout-left-text.visible .section-image {
    transform: translateX(0);
    opacity: 1;
}

main section.layout-left-text.visible .section-content {
    transition-delay: 0.2s;
}

main section.layout-left-text.visible .section-image {
    transition-delay: 0.4s;
}

/* Estilos para el layout con texto a la derecha, imagen a la izquierda (slide desde la izquierda) */
main section.layout-right-text {
    flex-direction: row-reverse;
}

main section.layout-right-text .section-content {
    transform: translateX(-100px);
}

main section.layout-right-text .section-image {
    transform: translateX(-100px);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

main section.layout-right-text.visible .section-content,
main section.layout-right-text.visible .section-image {
    transform: translateX(0);
    opacity: 1;
}

main section.layout-right-text.visible .section-content {
    transition-delay: 0.2s;
}

main section.layout-right-text.visible .section-image {
    transition-delay: 0.4s;
}

/* --- Estilos para secciones específicas y sus elementos --- */
#quienes-somos .section-image img {
    width: 50%;
    max-width: 600px;
    height: auto;
    border-radius: 50%;
}

#valores .section-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#valores .section-content table td {
    padding: 10px;
    vertical-align: middle;
    text-align: left;
}

#valores .section-content table td:first-child {
    width: 80px;
    text-align: center;
}

#valores .section-content .value-icon {
    width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#valores .section-content table p {
    text-align: left;
    margin-bottom: 0;
}

#sucursales .section-image img {
    width: 60%;
    height: auto;
}

#trabaja .section-content iframe {
    display: block;
    margin: 20px auto;
}

#trabaja .section-image img {
    max-width: 59%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Styling for contact items with icons */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.contact-item .contact-icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

.contact-item p {
    text-align: center;
    margin-bottom: 0;
}

/* Footer styles */
footer {
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    position: relative;
    width: 100%;
    border-top: 2px solid #AE63FF;
    margin-top: 40px;
}

footer p {
    font-size: 0.9rem;
    color: #555;
}

/* --- Estilos para la sección Misión y Visión --- */
#mision-vision {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 3cm; /* Mueve el contenedor hacia abajo */
}

.mision-vision-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Hace que ambas cajas tengan el mismo alto */
}

.mision-vision-box {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: #000000;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #AE63FF;
}

.mision-vision-box:hover {
    background-color: #AE63FF;
    color: #ffffff;
    transform: translateY(-5px);
}

.mision-vision-box:hover h2,
.mision-vision-box:hover p {
    color: #ffffff;
}

/* Caja de texto (izquierda) */
.texto-box {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #AE63FF;
}

/* Caja de imagen (derecha) */
.imagen-box {
    background-color: #ffffff;
    align-items: center;
    justify-content: center;
    border: 2px solid #AE63FF;
}

/* Flex general de la sección */
#mision-vision {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 60px 20px;
}

/* Título centrado */
.sucursales-title {
    text-align: center;
    font-size: 2.2rem;
    color: #000000;
    width: 100%;
    margin-bottom: 50px;
}

/* Contenedor principal: tarjetas + mapa */
.sucursales-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Contenedor principal de sucursales */
#sucursales {
    background-color: #E0E0E0;
    padding: 60px 20px;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Mapa con estilo elegante */
.sucursales-map img {
    width: 450px;
    height: 450px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sucursales-map img:hover {
    transform: scale(1.03);
}

/* Contenedor de tarjetas */
.sucursales-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    flex: 1;
}

/* Tarjetas de cada sucursal */
.sucursal-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 2px solid #AE63FF;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Efecto hover en tarjeta */
.sucursal-card:hover {
    transform: translateY(-5px);
    background-color: #AE63FF;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #AE63FF;
}

/* Efecto hover en los títulos dentro de la tarjeta */
.sucursal-card:hover h3 {
    color: #ffffff;
}

.sucursal-card h3 {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.sucursal-card p {
    font-size: 1rem;
    color: #333333;
    transition: color 0.3s ease;
}

/* Efecto hover en los párrafos dentro de la tarjeta */
.sucursal-card:hover p {
    color: #ffffff;
}

/* Aplica solo a la tarjeta de El Carmén */
.sucursal-card:last-child {
    grid-column: 1 / -1; /* ocupa toda la fila */
    justify-self: center; /* se centra en relación con las demás */
}

/* Modal Imagen */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #AE63FF;
}

.map-hint {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

/* ==== Sección Valores ==== */
.valores-section {
    background: #E0E0E0;
    padding: 60px 20px;
    text-align: center;
}

.valores-section h2 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 40px;
    position: relative;
}

.valores-section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #AE63FF;
    margin: 10px auto 0;
    border-radius: 2px;
}

.valores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-items: center;
}

.valor-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

/* Efecto hover para la tarjeta de valores */
.valor-card:hover {
    transform: translateY(-8px);
    background-color: #AE63FF;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: #AE63FF;
    color: #ffffff;
}

.valor-card:hover h3 {
    color: #ffffff;
}

.valor-card:hover p {
    color: #ffffff;
}

.valor-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.valor-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #000000;
    transition: color 0.3s ease;
}

.valor-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    transition: color 0.3s ease;
}

/* ==== Mejora visual para sección Giro del negocio ==== */
#giro {
    background: #E0E0E0;
    padding: 80px 20px;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* para responsive */
}

#giro .section-content {
    background: #E0E0E0;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 2px solid #AE63FF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
}

#giro .section-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

#giro h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #000000;
    text-align: center;
    position: relative;
}

#giro h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #AE63FF;
    margin: 12px auto 0;
    border-radius: 2px;
}

#giro p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

#giro p strong {
    color: #AE63FF;
    font-size: 1.1rem;
}

/* Imagen con estilo elegante */
#giro .section-image img {
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

#giro .section-image img:hover {
    transform: scale(1.03);
}

/* Estilos para el efecto hover en todas las secciones */
#quienes-somos .section-content,
#mision-vision .mision-vision-box,
#sucursales .section-content,
#trabaja .section-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#quienes-somos .section-content:hover,
#mision-vision .mision-vision-box:hover,
#sucursales .section-content:hover,
#trabaja .section-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* --- Sección Servicios --- */
.servicios-title {
    text-align: center;
    font-size: 2rem;
    color: #000000;
    margin-bottom: 30px;
    font-weight: bold;
}

.servicios-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.servicio-card {
    background: #ffffff;
    border: 2px solid #AE63FF;
    border-radius: 20px;
    padding: 25px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.servicio-card h3 {
    color: #AE63FF;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.servicio-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 20px;
}

.servicio-icon {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10%;
    margin-top: 10px;
}

/* Quitar cuadro en Trabaja con Nosotros */
#trabaja .section-content {
    background: transparent !important; /* sin fondo */
    border: none !important;           /* sin borde */
    box-shadow: none !important;       /* sin sombra */
    padding: 0;                        /* limpio */
    transform: none !important;        /* sin animación de tarjeta */
}

#trabaja .section-content:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Título elegante */
#trabaja .section-title {
    font-size: 2.2rem;
    color: #AE63FF;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

#trabaja .section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #AE63FF;
    display: block;
    margin: 10px auto 0;
    border-radius: 5px;
}

/* Grid dinámico */
.trabaja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Tarjetas elegantes */
.trabaja-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    border: 1px solid #eee;
}

.trabaja-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(174, 99, 255, 0.3);
}

/* Iconos */
.trabaja-card i {
    font-size: 3rem;
    color: #AE63FF;
    margin-bottom: 15px;
}

/* Textos */
.trabaja-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.trabaja-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.trabaja-link {
    color: #AE63FF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.trabaja-link:hover {
    color: #6a3d9b;
}

/* Contenedor del mapa */
.mapa-container {
    margin-top: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.mapa-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Estado inicial oculto */
#trabaja {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estado visible al hacer scroll */
#trabaja.visible {
    opacity: 1;
    transform: translateY(0);
}

.trabaja-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#trabaja.visible .trabaja-card {
    opacity: 1;
    transform: translateY(0);
}

#trabaja.visible .trabaja-card:nth-child(1) {
    transition-delay: 0.2s;
}
#trabaja.visible .trabaja-card:nth-child(2) {
    transition-delay: 0.4s;
}
#trabaja.visible .trabaja-card:nth-child(3) {
    transition-delay: 0.6s;
}

/* Sección Gerente */
#gerente {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

#gerente .section-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Agrega la transición */
    flex: 1;
    min-width: 350px;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
}

#gerente .section-image {
    flex: 1;
    min-width: 350px;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
}
#gerente .section-content:hover {
    transform: translateY(-5px); /* Movimiento vertical al pasar el mouse */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Sombra que se visualiza */
}

#gerente .section-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

#gerente .section-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #AE63FF;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gerente .section-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.25);
}

#gerente .section-content h2 {
    font-size: 2.2rem;
    color: #AE63FF;
    margin-bottom: 10px;
    text-align: center;
}

#gerente .section-content h4 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

#gerente .section-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

#quienes-somos h2 {
    font-size: 3.5rem; /* Aumenta el tamaño del título. Puedes ajustar este valor. */
    margin-bottom: 20px;
    color: #ffffff; /* Opcional: Cambia el color para destacarlo. */
    transition: color 0.3s ease;
}

#quienes-somos h2:hover {
    color: #AE63FF; /* Cambia el color del título al pasar el mouse */
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 50px;
}

/* ========================================================================== */
/* ========================= MEDIA QUERIES PARA RESPONSIVE ================== */
/* ========================================================================== */

/* Adaptación para pantallas más pequeñas: apilar columnas (Tablets y Móviles) */
@media (max-width: 768px) {

    /* Resetear el layout en pantallas pequeñas */
    header.fixed-left-header {
        position: static; /* Cambia de fijo a estático */
        width: 100%; /* Ocupa todo el ancho */
        height: auto; /* Altura automática */
        border-right: none; /* Elimina el borde derecho */
        border-bottom: 2px solid #AE63FF; /* Añade un borde inferior */
        flex-direction: row; /* Elementos en fila */
        justify-content: space-between; /* Espacio entre elementos */
        padding: 10px; /* Reduce el padding */
    }

    header .header-content-wrapper {
        flex-direction: row; /* Logo y nav en fila */
        justify-content: space-between;
        align-items: center;
    }

    .header-logo {
        width: 60px; /* Reduce el tamaño del logo */
        margin-bottom: 0;
    }

    header nav {
        width: auto; /* Ancho automático para el nav */
    }

    header nav ul {
        flex-direction: row; /* Elementos del nav en fila */
        gap: 5px; /* Reduce el espacio entre elementos del nav */
    }

    main {
        margin-left: 0; /* Elimina el margen izquierdo */
        max-width: 100%; /* Ocupa todo el ancho disponible */
    }

    main section.layout-left-text,
    main section.layout-right-text {
        flex-direction: column; /* Apila los elementos en columna */
    }

    /* Reinicia las animaciones para que no interfieran con el layout apilado */
    main section .section-content,
    main section .section-image {
        transform: none !important; /* Elimina transformaciones */
        opacity: 0; /* Mantiene la opacidad para la animación de aparición */
        transition: opacity 1s ease-out; /* Transición solo para opacidad */
    }

    main section.visible .section-content,
    main section.visible .section-image {
        opacity: 1; /* Hace visible el contenido */
        transition-delay: 0s !important; /* Elimina el retraso de la transición */
    }

    /* Sección Quienes Somos */
    #quienes-somos {
        margin-left: 0; /* Elimina el margen izquierdo */
        padding: 100px 20px; /* Ajusta el padding */
    }

    #quienes-somos .section-content {
        margin-left: 0; /* Elimina el margen izquierdo del contenido */
    }

    .quienes-somos-paragraphs-container {
        flex-direction: column; /* Apila los cuadros de párrafo */
        margin-left: 0; /* Elimina el margen izquierdo */
        align-items: center; /* Centra los cuadros */
    }

    .paragraph-box {
        width: 90%; /* Ocupa casi todo el ancho */
        max-width: 400px; /* Limita el ancho máximo */
    }

    #quienes-somos h2 {
        font-size: 2.5rem; /* Ajusta el tamaño del título para móviles */
    }

    /* Sección Misión y Visión */
    #mision-vision {
        flex-direction: column; /* Apila los cuadros de misión y visión */
        margin-top: 0; /* Elimina el margen superior */
        padding: 40px 20px; /* Ajusta el padding */
    }

    .mision-vision-box {
        max-width: 100%; /* Ocupa todo el ancho disponible */
    }

    .mision-vision-box img {
        width: 100%; /* Ajusta el tamaño de la imagen */
        height: auto;
    }

    /* Sección Giro del Negocio */
    #giro {
        flex-direction: column; /* Apila el contenido y la imagen */
        padding: 40px 20px; /* Ajusta el padding */
    }

    #giro .section-content {
        max-width: 100%; /* Ocupa todo el ancho disponible */
    }

    #giro .section-image img {
        max-width: 100%; /* Ajusta el tamaño de la imagen */
    }

    /* Sección Nuestro Gerente */
    #gerente {
        flex-direction: column; /* Apila el contenido y la imagen */
        padding: 40px 20px; /* Ajusta el padding */
        gap: 30px; /* Reduce el espacio entre elementos */
    }

    #gerente .section-content,
    #gerente .section-image {
        max-width: 100%; /* Ocupa todo el ancho disponible */
    }

    #gerente .section-image img {
        width: 200px; /* Ajusta el tamaño de la imagen del gerente */
        height: 200px;
    }

    /* Sección Sucursales */
    #sucursales {
        flex-direction: column;
        align-items: center;
        padding: 40px 10px;
    }

    .sucursales-container {
        flex-direction: column; /* Apila la lista y el mapa */
        align-items: center;
        gap: 40px;
    }

    .sucursales-map {
        flex: none;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .sucursales-map img {
        width: 300px; /* Reduce el tamaño del mapa en móviles */
        height: 300px;
    }

    .sucursales-list {
        grid-template-columns: 1fr; /* Apila tarjetas en móvil */
    }

    .sucursal-card:last-child {
        grid-column: auto; /* Deshace el span de columna para el último elemento */
    }

    /* Sección Servicios */
    .servicios-container {
        flex-direction: column; /* Apila las tarjetas de servicio */
        align-items: center;
    }

    .servicio-card {
        max-width: 90%; /* Ocupa casi todo el ancho */
    }

    /* Sección Valores */
    .valores-container {
        grid-template-columns: 1fr; /* Apila las tarjetas de valores */
    }

    .valor-card {
        max-width: 90%; /* Ocupa casi todo el ancho */
    }

    /* Sección Trabaja con Nosotros */
    .trabaja-grid {
        grid-template-columns: 1fr; /* Apila las tarjetas de trabaja */
        padding: 10px; /* Ajusta el padding */
    }

    .trabaja-card {
        padding: 20px 15px; /* Ajusta el padding de las tarjetas */
    }

    .mapa-container iframe {
        height: 300px; /* Reduce la altura del mapa */
    }
}

/* Adaptación para Tablets (entre 769px y 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    header.fixed-left-header {
        width: 6cm; /* Ajusta el ancho del header para tablets */
    }

    main {
        margin-left: 6cm; /* Ajusta el margen del main */
    }

    #quienes-somos {
        margin-left: calc(-6cm);
    }

    .quienes-somos-paragraphs-container {
        margin-left: 2cm; /* Ajusta el margen de los párrafos */
    }

    #mision-vision {
        flex-direction: column; /* Apila los cuadros de misión y visión */
        margin-top: 0;
    }

    .mision-vision-box {
        max-width: 80%; /* Ajusta el ancho de los cuadros */
    }

    #giro {
        flex-direction: column;
    }

    #gerente {
        flex-direction: column;
    }

    #sucursales .sucursales-container {
        flex-direction: column; /* Apila la lista y el mapa */
        align-items: center;
    }

    #sucursales .sucursales-map img {
        width: 100%;
        max-width: 600px; /* Limita el tamaño del mapa */
        height: auto;
    }

    .sucursales-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Ajusta el grid para más columnas */
    }

    .sucursal-card:last-child {
        grid-column: auto; /* Deshace el span de columna para el último elemento */
    }

    .servicios-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajusta el grid de servicios */
    }

    .valores-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajusta el grid de valores */
    }

    .trabaja-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajusta el grid de trabaja */
    }
}

#gerente {
    background-color: #E0E0E0;
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}
#servicios {
    background-color: #E0E0E0;
    padding: 60px 20px; /* Ejemplo de padding para que se note el fondo */
}

