/* ======================================================================================== */
/*                                   SECCIÓN SOBRE NOSOTROS                                */
/* ======================================================================================== */

#sobre-nosotros {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Título principal */
.about-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
}

/* Wrapper principal */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

/* Columna de Logo */
.about-logo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
    position: sticky;
    top: 100px;
}

.about-logo.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.logo-container {
    width: 100%;
    max-width: 380px;       /* ← Un poco más grande para las ramas */
    background: transparent;
    border-radius: 0;       /* ← ELIMINAR el border-radius */
    overflow: visible;      /* ← CAMBIAR hidden por visible */
    aspect-ratio: 1 / 1;
}

.logo-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;    /* ← MANTENER contain, no cover */
    border-radius: 240px;       /* ← QUITAR border-radius de la imagen */
    transition: transform 0.4s ease;
}

.logo-container img:hover {
    transform: scale(1.05); /* ← Era 5.05, typo corregido */
}

/* Columna de Contenido */
.about-content {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
    padding-top: 0;
}

.about-content.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.about-label {
    display: inline-block;
    color: #ffa500;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.about-text strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Botón CTA */
.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
    margin-top: 1.5rem;
}

.about-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
    background: linear-gradient(135deg, #ffa500, #ffd700);
}

.about-cta i {
    transition: transform 0.3s ease;
}

.about-cta:hover i {
    transform: translateX(5px);
}

/* Grid de Features */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;  /* ← todas la misma altura */
}


.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.8rem;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    height: 100%;         /* ← ocupa toda la altura del grid */
    box-sizing: border-box;
}

.feature-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.15);
    transform: translateY(-5px);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-box i {
    font-size: 1.6rem;
    color: #ffffff;
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.88rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
    /* ← elimina las líneas de -webkit-line-clamp si las agregaste */
}

/* Responsive */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-logo {
        position: static;
    }

    .logo-container {
        max-width: 350px;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #sobre-nosotros {
        padding: 60px 0;
    }

    .about-main-title {
        font-size: 2.2rem;
    }

    .about-wrapper {
        gap: 2rem;
    }

    .logo-container {
        max-width: 300px;
        padding: 1.5rem;
    }

    .about-text {
        font-size: 0.9rem;
        text-align: left;
    }

    .about-cta {
        width: 100%;
        justify-content: center;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-main-title {
        font-size: 1.8rem;
    }

    .logo-container {
        max-width: 250px;
        padding: 1.2rem;
    }

    .about-label {
        font-size: 0.75rem;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon-box {
        margin: 0 auto;
    }
}