/* Reset solo dentro de la sección Sobre Mí */
.sobre-mi * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============ SECCIÓN SOBRE MÍ ============ */
.sobre-mi {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
    position: relative;
    overflow: hidden;
    background-color: #000; /* Fondo oscuro */
}

/* Contenedor de la información en dos columnas */
.sobre-mi .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 90%;
    margin: -20 auto;
}


/* Columna del texto */
.sobre-mi .texto {
    flex: 1;
    color: white;
    text-align: left;
    background: rgba(0, 0, 0, 0.8); /* Fondo negro semi-transparente */
    padding: 40px;
    border-radius: 15px;
}

/* Títulos */
.sobre-mi .texto h1 {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    background: #FFD700;
    color: black;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 5px 5px 0px #00000088;
    display: inline-block;
    margin-bottom: 3rem; /* 💥 Este es el nuevo espaciado */
}


.sobre-mi .texto h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Párrafos */
.sobre-mi .texto p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Cita final */
.sobre-mi .frase {
    font-size: 1.3rem;
    font-style: italic;
    text-align: left;
}

/* Columna de la imagen */
.sobre-mi .imagen {
    flex: 0.8;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 180px; /* 👈 NUEVO */
}

.sobre-mi .imagen img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
    margin: 0; /* Quitamos margen innecesario */
}




/* Ajustar en pantallas pequeñas */
@media (max-width: 1024px) {
    .sobre-mi .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .sobre-mi .imagen {
        max-width: 80%;
    }
}


/* BOTONES CTA */

.container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}


.sobre-mi {
    padding-bottom: 40px; /* Ajusta el espacio sin empujar el footer */
}


/* Asegurar que los botones estén alineados uno al lado del otro y debajo del texto */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

/* Estilo de los botones CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(90deg, #6D28D9, #4C1D95);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    text-align: center;
    white-space: nowrap;
}

/* Efecto hover */
.cta-button:hover {
    background: linear-gradient(90deg, #4C1D95, #6D28D9);
    transform: scale(1.05);
}

/* Ajustar el texto */
.texto {
    display: block; /* Asegurar que no esté en flex */
    width: 100%;
}

/* Responsive: Asegurar que los botones se apilen en pantallas pequeñas */
@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
    }
}

/* Animación para el título */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para la Imagen */
.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    animation: fadeInRight 1.2s ease-out forwards;
    animation-delay: 0.3s; /* ⏱ Ajustalo a gusto */
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



