/*
Theme Name: Sitio de mantenimiento
Author: Codex
Version: 1.0
*/

* {
    font-family: 'Montserrat', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white !important;
    /* Texto blanco por defecto */

    /* DEGRADADO GENERAL */
    /* Va de la esquina superior izquierda a la inferior derecha */
    background: #441857;
    background: linear-gradient(90deg, rgba(68, 24, 87, 1) 0%, rgba(192, 82, 111, 1) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* Evita que se duplique */
    display: flex;
}

.contenedor-imagen {
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contenedor-imagen img {
    width: 80%;
    height: auto;
    position: fixed;
    left: 5%;
}

.contenedor-texto {
    width: 50%;
    margin-left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    box-sizing: border-box;
}

h1 {
    font-size: 3.5rem;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.estado {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}

.imagen-inferior {
    margin-top: 5px;
    opacity: 0.8;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.contenedor-texto {
    width: 50%;
    margin-left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    
    
    padding: 60px;          
    box-sizing: border-box; 
}

.contenedor-texto p {
    max-width: 500px;  
    margin-top: 10px;
}

/**
* MODO RESPONSIVO
**/

@media (max-width: 768px) {
    body {
        /* CAMBIO 1: Invierte el orden (Texto arriba, Imagen abajo) */
        flex-direction: column-reverse; 
        overflow-y: auto;
        height: auto;
    }

    .contenedor-imagen, .contenedor-texto {
        width: 100%;        
        height: auto;
        margin-left: 0;        
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contenedor-imagen img {
        /* CAMBIO 2: Forzamos a que deje de ser fija */
        position: relative !important; 
        left: 0;
        top: 0;
        width: 70%; 
        margin: 40px auto;
        display: block;
    }

    h1 {
        font-size: 2.2rem;
        text-align: center;
        margin-top: 20px;
    }
    
    .contenedor-texto {
        align-items: center;    
        text-align: center;
        padding-top: 50px;
    }

    .imagen-inferior {
        width: 100px; 
        margin-bottom: 20px;
    }
}