/* ================================
   HEADER
================================ */
header {
    position: fixed !important;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: 0.35s ease;
}

/* CONTENEDOR PRINCIPAL — MISMO ANCHO QUE SERVICIOS */
.nosotros {
    max-width: 1320px;
    margin: auto;
    padding: 40px 0px;
}

/* CONTENIDO — ANCHO COMPLETO COMO SERVICIOS */
.nosotros-contenido {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:20px;   /* antes 40px → ahora más compacto */
    flex-wrap: nowrap;
    margin-bottom: 60px;
}

/* TEXTO */
.nosotros-texto {
    width: 55%;
    min-width: 350px;
}

.nosotros-texto h2 {
    font-size: 24px;
    color: var(--rojo);
    margin-bottom: 15px;
    text-align: center;
}

.nosotros-texto p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gris-oscuro);
    text-align: justify;
}

/* IMAGEN */
.nosotros-imagen {
    position: relative;
    width: 40%; /*ESPACIO DONDE ESTA LA IMAGEN UN POCO MAS A LA DERECHA*/  
    display: flex;
    justify-content: center;
    padding-left: 20px;
}

.nosotros-imagen::before {
    content: "";
    position: absolute;
    right: -25px;   /* mueve la figura hacia la derecha */
    bottom: -25px;  /* mueve la figura hacia abajo */
    width: 450px;
    height: 500px;
    background: #7a0000; /* rojo corporativo */
    border-radius: 15px; /* opcional, esquinas redondeadas */
    z-index: 0; /* detrás de la imagen */
}

.nosotros-imagen img {
    position: relative;
    z-index: 1; /* asegura que la imagen quede encima */
    width:100%;
    height: auto;
    max-width: 500px; /* un poco más grande *//* límite de ancho */
    max-height: 520px;  /* límite de alto */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: cover; /* asegura que no se deforme */
}

/* TARJETAS */
.nosotros-grid {
    width: 100%;
    margin: 40px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.nosotros-card {
    background: #f5f5f5;
    padding: 25px;
    width: calc(25% - 20px); /* 4 por fila */
    min-width: 260px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    text-align: center;
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.nosotros-card h3 {
    color: var(--rojo);
    margin-bottom: 10px;
    font-size: 24px;
}

.nosotros-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.nosotros-card p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gris-oscuro);
    text-align: justify;
}

/* BULLETS */
.nosotros-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nosotros-bullets li {
    display: flex;
    line-height: 1.7;
    align-items: center;
    font-size: 17px;
    margin-bottom: 10px;
    text-align: justify;
}

.icono-svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .nosotros-contenido {
        flex-wrap: wrap;
        text-align: center;
    }

    .nosotros-texto,
    .nosotros-imagen {
        width: 100%;
    }

    .nosotros-card {
        width: calc(50% - 20px); /* 2 por fila */
    }
}

@media (max-width: 600px) {
    .nosotros-card {
        width: 100%; /* 1 por fila */
    }
}