/* Estilos de la página: nosotros.php */

/* Fondo con tonalidades celestes claras para toda la página */
body {
    background-color: #f0faff; /* Tonalidad celeste muy suave */
}

/* Estilos generales */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    color: #003b73;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #0074B7;
    margin: 0.5rem auto 0;
}

.text-center {
    text-align: center;
}

/* Hero Section con imagen de fondo */
.hero {
    background: url('/assets/img/nosotros/heronosotros.webp') center/cover no-repeat;
    color: #fff;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0, 59, 115, 0.85), rgba(0, 116, 183, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.96;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Quiénes Somos */
.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}

/* Nuestros Valores - Ajustado con color de fondo más claro */
.section.valores {
    background-color: #e1f5ff; /* Tono celeste ligeramente más intenso para contraste */
}

.valores-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Ajuste para las tarjetas de valores */
.valor-card {
    background: #fff;
    border-radius: 20px; /* Aumentado el radio para hacer las esquinas más circulares */
    box-shadow: 0 5px 20px rgba(0, 116, 183, 0.07);
    padding: 2.5rem;
    text-align: center;
    width: 260px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; /* Para asegurar que el contenido respete los bordes redondeados */
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 116, 183, 0.12);
}

.valor-icon {
    color: #0074B7;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.valor-title {
    color: #003b73;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.valor-desc {
    color: #555;
    line-height: 1.6;
}

/* Equipo */
.equipo-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.equipo-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 116, 183, 0.1) 0%, rgba(0, 116, 183, 0) 70%);
    z-index: -1;
}

.equipo-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.1) 0%, rgba(255, 105, 180, 0) 70%);
    z-index: -1;
}

.equipo-section .section-title {
    margin-bottom: 2.5rem;
}

.equipo-section .section-subtitle {
    text-align: center;
    color: #0074B7;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.equipo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem; /* Reduced gap */
    margin-top: 3rem;
}

.equipo-card {
    text-align: center;
    width: 240px; /* Reduced width */
    background-color: white;
    border-radius: 20px;
    padding: 2rem 1rem; /* Adjusted padding */
    box-shadow: 0 10px 30px rgba(0, 116, 183, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.equipo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 116, 183, 0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.equipo-card:hover {
    transform: translateY(-15px);
}

.equipo-card:hover::after {
    opacity: 1;
}

.equipo-icon-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
}

.equipo-icon {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    z-index: 1;
    background: white;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.equipo-icon.female {
    color: #ff69b4;
}

.equipo-icon.male {
    color: #0074B7;
}

.equipo-icon-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    z-index: 0;
}

.equipo-icon-bg.female {
    background: linear-gradient(135deg, #ff69b4 0%, #f368e0 100%);
}

.equipo-icon-bg.male {
    background: linear-gradient(135deg, #0074B7 0%, #00a8e8 100%);
}

.equipo-card:hover .equipo-icon {
    transform: scale(1.1);
}

.equipo-nombre {
    color: #003b73;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.equipo-cargo {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.equipo-cargo.female {
    background: linear-gradient(135deg, #ff69b4 0%, #f368e0 100%);
}

.equipo-cargo.male {
    background: linear-gradient(135deg, #0074B7 0%, #00a8e8 100%);
}

.equipo-desc {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.equipo-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.equipo-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #0074B7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.equipo-social a:hover {
    background-color: #0074B7;
    color: white;
    transform: translateY(-5px);
}

/* Historia Simplificada - Ajustado con color de fondo claro */
.section.historia {
    background-color: #e1f5ff; /* Tono celeste ligeramente más intenso para contraste */
}

.historia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Ajuste para items de historia */
.historia-item {
    background: #fff;
    border-left: 4px solid #0074B7;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 15px rgba(0, 116, 183, 0.05);
}

.historia-year {
    color: #0074B7;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.historia-title {
    color: #003b73;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.historia-desc {
    color: #555;
    line-height: 1.6;
}

/* CTA Final con imagen de fondo */
.cta {
    background: url('/assets/img/servicios/cta.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0, 59, 115, 0.85), rgba(0, 116, 183, 0.75));
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn {
    background: #fff;
    color: #0074B7;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background: rgba(26, 188, 156, 0.9);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .equipo-card {
        width: 100%;
        max-width: 320px;
        padding: 2rem 1rem;
    }
    
    .equipo-container {
        gap: 3rem;
    }
    
    .equipo-nombre {
        font-size: 1.2rem;
    }
    
    .equipo-icon-container {
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 6rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
}
