:root {
    --rojo: #8C1C2A;
    --azul: #0d1b2a;
    --dorado: #A97C37;
}

/* Encabezado */
.nosotros-header {
    background: var(--azul);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.nosotros-header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contenedor */
.nosotros-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 3rem 0;
}

/* Grid */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Texto */
.nosotros-text h2 {
    color: var(--rojo);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.nosotros-text p {
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* --- Cajas Misión, Visión, Valores --- */
.nosotros-box {
    background: var(--rojo);
    color: #fff;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform .3s, box-shadow .3s;
}

.nosotros-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.nosotros-icon svg {
    width: 36px;
    height: 36px;
    color: var(--dorado);
    flex-shrink: 0;
}

.nosotros-content h3 {
    color: var(--dorado);
    margin: 0 0 0.5rem 0;
}

.nosotros-content p {
    margin: 0;
}

/* Imagen */
.nosotros-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


/* Carrusel Automático */
.nosotros-carrusel {
    margin-top: 3rem;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.carrusel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carrusel-container img {
    min-width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #fff;
    font-weight: bold;
    font-size: 40px;
    user-select: none;
    transition: 0.3s;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover,
.close:hover {
    color: var(--dorado);
}

/* Responsive */
@media (max-width: 768px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-header h1 {
        font-size: 2rem;
    }

    .carrusel-container img {
        height: 250px;
    }
}