/* CONFIGURACIÓN GENERAL */
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden; 
    position: relative;
}

.nosotros-page {
    padding-top: 80px; 
}

/* HERO (BANNER PRINCIPAL) */

.about-hero {
    position: relative;
    height: 85vh; 
    min-height: 500px;
    background: url("../uploads/Fondos/fotofondo.jpg") center/cover no-repeat;
    background-attachment: fixed; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.3),
        rgba(0,0,0,0.7)
    );
}

.about-hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: white;
    z-index: 2;
}

.about-hero-content h1 {
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-secundario); 
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.about-hero-content h2 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.about-hero-content p {
    font-size: 20px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- RESPONSIVE HERO --- */
@media (max-width: 992px) {
    .about-hero {
        background-attachment: scroll;
        height: 60vh;
    }
    .about-hero-content h2 {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .about-hero {
        height: 50vh; 
        min-height: 400px;
    }
    .about-hero-content h1 {
        font-size: 14px;
        letter-spacing: 2px;
    }
    .about-hero-content h2 {
        font-size: 32px; 
    }
    .about-hero-content p {
        font-size: 16px;
    }
}

/* QUIENES SOMOS */

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 100px 8%;
    align-items: center;
    background: #fff;
}

.about-intro-text h2 {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--color-titulo);
    position: relative;
    display: inline-block;
}

.about-intro-text h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--color-principal);
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

.about-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.about-intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; 
}

.about-intro-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-intro-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .about-intro {
        grid-template-columns: 1fr;
        padding: 60px 20px;
        text-align: center;
        gap: 40px;
    }
    .about-intro-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-intro p {
        text-align: center; 
    }
}

/* MISIÓN Y VISIÓN */

.about-mission {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 100px 8%;
    background: #f4f6f8; 
}

.mission-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid transparent;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 5px solid var(--color-principal);
}

.mission-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--color-titulo);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    text-align: justify;
}

/* Tarjeta destacada (Visión) */
.mission-card.highlight {
    background: linear-gradient(135deg, var(--color-principal), var(--color-titulo));
    color: white;
    border-top: none;
}

.mission-card.highlight h3 {
    color: white;
}

.mission-card.highlight p {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) {
    .about-mission {
        grid-template-columns: 1fr;
        padding: 60px 20px;
    }
    .mission-card {
        padding: 30px;
    }
}

/* FUNDADORES */

.about-founders {
    padding: 100px 8%;
    background: #fff;
    text-align: center;
}

.about-founders h2 {
    font-size: 42px;
    color: var(--color-titulo);
    margin-bottom: 15px;
}

.founders-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column; 
}

.founder-card:hover {
    transform: translateY(-10px);
}

.founder-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.founder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; 
    transition: transform 0.5s ease;
}

.founder-card:hover img {
    transform: scale(1.1);
}

.founder-info {
    padding: 30px;
    text-align: center;
}

.founder-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--color-titulo);
}

.founder-info span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-principal);
    margin-bottom: 15px;
}

.founder-info p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-founders {
        padding: 60px 20px;
    }
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-founders h2 {
        font-size: 32px;
    }
}

/* ESTADÍSTICAS */

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #1a1a1a;
    color: white;
    padding: 80px 8%;
    text-align: center;
}

.stat {
    position: relative;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.stat span {
    display: block;
    font-size: 48px;
    color: var(--color-principal);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat p {
    font-size: 16px;
    color: #ccc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        padding: 60px 20px;
    }
    .stat:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr; 
    }
}

/* VALORES */

.about-values {
    padding: 100px 8%;
    background: #f9f9f9;
    text-align: center;
}

.about-values h2 {
    font-size: 42px;
    color: var(--color-titulo);
    margin-bottom: 10px;
}

.values-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.value-card ion-icon {
    font-size: 48px;
    color: var(--color-principal);
    margin-bottom: 20px;
    background: rgba(196,163,47,0.1);
    padding: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.value-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-principal);
    box-shadow: 0 15px 40px rgba(196,163,47,0.15);
}

.value-card:hover ion-icon {
    background: var(--color-principal);
    color: white;
}

@media (max-width: 768px) {
    .about-values {
        padding: 60px 20px;
    }
    .about-values h2 {
        font-size: 32px;
    }
}

.about-cta {
    padding: 100px 20px;
    background: linear-gradient(
        135deg,
        var(--color-principal),
        var(--color-titulo)
    );
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    max-width: 700px;
    margin: auto;
    z-index: 2;
}

.about-cta h2 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: var(--color-titulo);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: #111;
    color: #fff;
}

@media (max-width: 600px) {
    .about-cta {
        padding: 80px 20px;
    }
    .about-cta h2 {
        font-size: 32px;
    }
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}