/* ===================== */
/* CONTENEDOR PRINCIPAL */
/* ===================== */
.about-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible; /* CAMBIO: permitir que contenido se expanda */
    font-family: 'Nunito', sans-serif;
    margin: 50px auto;
}

/* ===================== */
/* LAYOUT GENERAL */
/* ===================== */
.row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    flex: 1;
}

/* Cada columna ocupa el mismo espacio */
.col {
    flex: 1;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 700px;
    overflow: visible; /* CAMBIO: permite mostrar todo el contenido */
}

/* ===================== */
/* SOBRE MÍ */
/* ===================== */
.about-section h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 15px;
}

.about-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ===================== */
/* IMAGEN */
/* ===================== */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden; /* CAMBIO: asegurar que no haya recorte externo */
}

.img-fluid {
    width: 100%;
    max-width: 600px;
    height: auto; /* CAMBIO: permite mantener proporciones naturales */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===================== */
/* MISIÓN Y VISIÓN */
/* ===================== */
.about-mission {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto; /* CAMBIO: altura automática */
}

/* ===================== */
/* ICONOS DE REDES SOCIALES */
/* ===================== */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap; /* CAMBIO: permite que se acomoden en múltiples líneas */
}

.social-icons a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s;
}

.social-icons i {
    font-size: 20px;
    color: #555;
}

/* Colores específicos al pasar el mouse (en escritorio y móviles) */
.social-icons a:hover {
    background: #F8AE00; /* Amarillo */
}

.social-icons a:nth-child(2):hover {
    background: #F8AE00; /* Amarillo */
}

.social-icons a:nth-child(3):hover {
    background: #F8AE00; /* Amarillo */
}

.social-icons a:nth-child(4):hover {
    background: #1da1f2;
}

/* ===================== */
/* RESPONSIVE DESIGN */
/* ===================== */

/* Tablets y laptops pequeñas */
@media screen and (max-width: 1024px) {
    .row {
        flex-direction: column;
    }

    .col {
        flex: 1 1 100%;
        margin-bottom: 20px;
        min-height: auto; /* CAMBIO: altura automática */
    }

    .about-image .img-fluid {
        width: 100%;
        height: auto;
    }
}

/* Móviles */
@media screen and (max-width: 768px) {

    .about-container {
        padding: 15px;
    }

    .row {
        flex-direction: column;
        gap: 20px;
    }

    .col {
        width: 100%;
        padding: 10px;
        text-align: center;
        min-height: auto;
        max-height: none; /* CAMBIO: eliminar limitación de altura */
        overflow: visible; /* CAMBIO: mostrar todo el contenido */
    }

    .img-fluid {
        width: 100%;
        height: auto;
        max-height: none; /* CAMBIO: evita recorte de imagen */
    }

    .about-section h1 {
        font-size: 24px;
    }

    .about-section p {
        font-size: 16px;
    }

    .about-mission h2 {
        font-size: 20px;
    }

    /* Iconos más grandes en móvil */
    .social-icons a {
        width: 70px;
        height: 70px;
    }

    .social-icons i {
        font-size: 32px;
    }

    /* Colores de hover (más amarillo en móvil) */
    .social-icons a:hover {
        background: #F8AE00;
    }

    .social-icons a:nth-child(2):hover {
        background: #F8AE00;
    }

    .social-icons a:nth-child(3):hover {
        background: #F8AE00;
    }

    .social-icons a:nth-child(4):hover {
        background: #1da1f2;
    }

    .about-mission {
        align-items: center;
        text-align: center;
        padding: 10px;
    }
}
