/**
 * home.css - Estilos específicos para la página de inicio (index.php)
 * Aislados de la galería masonry para evitar conflictos
 */

/* ===== PANTALLA DE CARGA ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo img {
    width: 190px;
    height: 200px;
    border-radius: 50%;
    animation: fadeInOut 2.5s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===== BOTÓN PRIMARIO ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: #20311c;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 5px;
}

.btn-primary:hover {
    background-color: #e8dcc0;
    color: #20311c;
}

/* ===== SECCIÓN IDEA (¿Tienes una idea?) ===== */
.idea-section {
    background-color: #8c9b8f;
    padding: 6rem 2rem;
    text-align: center;
}

.idea-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.idea-image {
    margin-bottom: 3rem;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #556b5d;
    border: 4px solid #556b5d;
    padding: 5px;
}

.idea-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.idea-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.idea-title {
    font-size: 3.2rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.idea-subtitle {
    font-size: 1.4rem;
    font-weight: 200;
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.7;
}

.idea-btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: #556b5d;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s ease;
    letter-spacing: 1px;
}

.idea-btn:hover {
    background-color: #6f8575;
    transform: translateY(-2px);
}

/* ===== SECCIÓN SOBRE MÍ ===== */
.sobre-mi {
    background-color: #f2f2f2;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
}

/* Logo centrado arriba */
.sobre-mi-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    transition: transform 0.3s ease;
}

.sobre-mi-logo:hover {
    transform: scale(1.05);
}

.sobre-mi .logo-negro {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sobre-mi-titulo {
    font-size: 3.2rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* Contenedor de dos columnas */
.sobre-mi-contenido {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Columna texto (izquierda) */
.sobre-mi-texto {
    flex: 1;
}

.sobre-mi-texto .description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin: 0;
}

/* Columna foto (derecha) */
.sobre-mi-foto {
    flex: 1;
    display: flex;
    justify-content: center;
}

.imagen-felipe {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.imagen-felipe:hover {
    transform: scale(1.02);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    /* Sección Idea */
    .idea-section {
        padding: 3rem 1rem;
    }

    .idea-title {
        font-size: 2.6rem;
    }

    .idea-subtitle {
        font-size: 1.2rem;
    }

    .idea-image {
        width: 130px;
        height: 130px;
    }

    .idea-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Sección Sobre Mí - Responsive */
    .sobre-mi {
        padding: 3rem 1rem;
    }

    .sobre-mi-logo {
        width: 120px;
        height: 120px;
    }

    .sobre-mi-titulo {
        font-size: 2.6rem;
    }

    /* Columnas se apilan en móvil */
    .sobre-mi-contenido {
        flex-direction: column;
        gap: 2rem;
    }

    .sobre-mi-texto .description-text {
        font-size: 1rem;
        text-align: left;
    }

    .imagen-felipe {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .idea-section {
        padding: 2rem 0.5rem;
    }

    .idea-title {
        font-size: 2rem;
    }

    .idea-image {
        width: 110px;
        height: 110px;
    }

    .btn-primary,
    .idea-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .sobre-mi {
        padding: 2rem 0.5rem;
    }

    .sobre-mi-logo {
        width: 100px;
        height: 100px;
    }

    .sobre-mi-titulo {
        font-size: 2rem;
    }

    .imagen-felipe {
        max-width: 280px;
    }
}