:root {
    --gold-dark: #b8860b;
    --bg-dark: #0a0a0a;
    --text-dark: #222222;
}

/* Contenedor General */
/* --- SECTION: HERO BANNER --- */
.nosotros-hero {
    position: relative;
    background: url('../img/fondo4.0.png') no-repeat center center;
    background-size: cover;
    height: 400px; 
    width: 100%;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5); 
    width: 100%;
    height: 100%;
    display: table;
}

.hero-content {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 42px;
    font-weight: 400;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* --- SECTION: QUIÉNES SOMOS --- */
.quienes-somos {
    padding: 80px 20px;
}

/* Estructura de dos columnas responsive sin usar flex/grid conflictivos */
.content-row {
    width: 100%;
}

.content-row::after {
    content: "";
    display: table;
    clear: both;
}

.content-text {
    width: 55%;
    float: left;
    padding-right: 5%;
    box-sizing: border-box;
}

.content-image {
    width: 45%;
    float: left;
    box-sizing: border-box;
}

.content-text h2 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 32px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    font-weight: 400;
}

/* Línea decorativa inferior del título */
.accent-line {
    width: 50px;
    height: 2px;
    background-color: var(--gold-primary);
    margin-bottom: 25px;
}

.content-text p {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- SECTION: FEATURES (Tarjetas de Misión, Valores, Historia) --- */
.nosotros-features {
    padding: 0 20px 80px 20px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-card {
    width: 100%;
    max-width: 420px;
    flex: 1 1 380px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 40px 30px;
    box-sizing: border-box;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Círculo dorado superior */
.circle-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    font-weight: 500;
}

.feature-card p {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    height: 45px; 
}

.btn-readmore {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.btn-readmore .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-readmore:hover {
    color: var(--gold-dark);
}

.btn-readmore:hover .arrow {
    transform: translateX(5px);
}


/* Tablets (Pantallas menores a 992px) */
@media (max-width: 992px) {
    .content-text {
        width: 100%;
        float: none;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .content-image {
        width: 100%;
        float: none;
    }
}

/* Celulares (Pantallas menores a 768px) */
@media (max-width: 768px) {
    .nosotros-hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
        padding: 0 15px;
    }

    .quienes-somos {
        padding: 50px 20px;
    }

    .feature-card {
        max-width: 100%;
    }

    .feature-card p {
        height: auto;
    }
}