@charset "UTF-8";

/* ===================================================
   RESET & ESTILOS GLOBALES ORIGINALES
   =================================================== */
* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #00b7ff; 
    text-decoration: none;
    transition: all 0.3s ease;
}

a:visited {
    color: #00c3ff; 
}

p {
    color: white;
}

body {
    background-color: #eeeeee;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================================
   HEADER (RESTAURADO COMO EN LA FOTO 1)
   =================================================== */
.header-width {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 8em;
    z-index: 1000;
    display: flex;
    justify-content: center; /* Vuelve a centrar el logo perfectamente */
    align-items: center;
    color: white;
    background: linear-gradient(to right, #002f5e, #0080ff) !important;
    box-shadow: 0 1em 3em #00000080;
    font-style: italic;
}

#top-title-logo {
    width: 7.5vw;
    height: auto;
    border-radius: 30%; /* Redondeado original de la foto 1 */
    transition: transform 0.3s ease;
}

#top-title-logo:hover {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    #top-title-logo {
        width: 89px;
    }
}

/* Botón Login (Estilo moderno pero en la posición original de la Foto 1) */
.loginButton {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 0.5em;
    padding: 10px 24px;
    background-color: #FFFFFF;
    color: #1a3a5a;
    box-shadow: 5px 6px 12px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1025px) {
    .loginButton {
        position: absolute;
        left: 90%;
        top: 3rem;
        transform: none;
    }
}

.loginButton:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* ===================================================
   BLOQUES DE AVISO Y CONTROL
   =================================================== */
.anuncioWarnings {
    /* Fondo con estilo construcción original */
    background: repeating-linear-gradient(
        45deg,
        #f2cb05,       /* Color amarillo */
        #f2cb05 20px,  /* Grosor del amarillo */
        #1a1a1a 20px,  /* Inicio del negro */
        #1a1a1a 40px   /* Fin del negro */
    );
    
    /* Bordes Suavizados */
    border-top-left-radius: 0.2em;
    border-top-right-radius: 0.2em;
    
    /* Texto y alineación */
    font-weight: bold;
    text-shadow: -2px 1px #000000;
    text-align: center;
    
    /* 🌟 REPARADO: Al medir el header 8em, este 10em devuelve tu gap limpio de separación */
    margin-top: 10em; 
    
    /* 🌟 REPARADO: Vuelve a ser una cinta fina y estética como en la Foto 1 */
    padding: .1rem .1rem; 
}

.firstbox {
    border-bottom-left-radius: 0.2em;
    border-bottom-right-radius: 0.2em;
    padding: 4rem 1rem;
    background: linear-gradient(to right, #002f5e, #0080ff);
    font-size: 2em;
    text-align: center;
}

.enlacePanel {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.enlacePanel:hover {
    transform: scale(1.05);
    color: #ffffff;
}

/* ===================================================
   TARJETAS CENTRALES (COMPLETAMENTE RESTAURADAS)
   =================================================== */
.secondbox {
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%; /* Eliminado el límite de anchura para volver a ocupar todo el espacio */
}

.con1 {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 300px;
    width: 49%; /* Distribución original de dos columnas anchas */
    padding: 2rem 1rem;
    border-radius: 1rem;
    
    /* Recuperamos los bordes negros y sombras marcadas de la foto 1 */
    border: 1px solid #000000;
    background: linear-gradient(to left, #ffffff, #e4e4e4);
    box-shadow: .1rem .1rem 2rem rgba(0,0,0,0.45);
    color: #333333;
    transition: all 0.3s ease;
}

/* Añadimos un sutil efecto interactivo moderno sin romper la estética original */
.con1:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.2);
}

.welcome-box {
    font-size: 1.2rem;
    text-align: center;
}

/* 🌟 RESTAURACIÓN DE LA FOTO DE RUBÉN (RECTANGULAR) */
#img1 {
    border-radius: 1rem;
    box-shadow: 0.1rem 0.1rem 2rem rgba(0, 0, 0, 0.5);
    width: 25%; /* Tamaño natural de la primera foto */
    height: auto;
    border: .1rem solid white;
    margin-left: auto;
    flex-shrink: 0;
}

#strong3 {
    color: rgb(255, 0, 200);
    text-shadow: .3rem .3rem .8rem rgb(255, 0, 234);
    font-weight: bold;
}

.secondbox-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ul1 li {
    display: flex;
    width: 100%;
    gap: .5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    list-style: none;
}

/* ===================================================
   BLOQUE INFERIOR DE SERVICIOS (OCULTO POR DEFECTO)
   =================================================== */
.firstcontainers {
    display: none; /* Se mantiene oculto tal y como se aprecia en la foto 1 */
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.con2 {
    background: linear-gradient(to right, #0056ac, #00b7ff);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.con2:hover {
    transform: scale(1.05);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1630px) {
    .con1 {
        width: 100%;
    }
}

@media (max-width: 501px) {
    .loginButton {
        position: relative;
        left: 0;
        top: 0;
        margin-top: 10px;
    }
    .header-width {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    .anuncioWarnings {
        margin-top: 12em;
    }
}

@media (max-width: 400px) {
    .ul1 li {
        flex-direction: column;
        align-items: center;
    }
    #img1 {
        width: 50%;
        margin: 10px auto 0 auto;
    }
}