/* ============================================================
   ESTILO GLOBAL   
   ============================================================ */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;   /* sin scroll lateral */
    overflow-y: auto;     /* scroll vertical normal */
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
}

/* Fondo a pantalla completa en el body */
body {
    background-image: url('https://i.postimg.cc/h4Q6HhRT/Astillero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
    --menu-height: 70px; /* altura real del menú superior */
}

/* ============================================================
   MENÚ SUPERIOR — VERSIÓN AZUL
   ============================================================ */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--menu-height);
    background: rgba(0, 48, 73, 0.85); /* azul translúcido */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 9999;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

.top-menu .brand {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.top-menu .menu-right a {
    margin-left: 34px;
    color: #e8e8e8;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
    text-decoration: none;
}

.top-menu .menu-right a:hover {
    color: #ffffff;
}

.top-menu .menu-right a.active {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* ============================================================
   CORRECCIÓN DE ANCHOS (SIN MAX-WIDTH)
   ============================================================ */

html, body {
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

/* ============================================================
   OVERLAY ADAPTADO A LA ALTURA DEL MENÚ
   ============================================================ */
.astilleros-overlay {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--menu-height));
    margin-top: var(--menu-height);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* empezamos justo debajo del menú */
    align-items: center;
    text-align: center;
    padding-top: 40px; /* separación elegante */
}

/* ============================================================
   TÍTULO SUPERIOR — POSICIÓN ELEGANTE Y ADAPTABLE
   ============================================================ */
.titulo-superior {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(0,0,0,0.85);
    margin-top: 10px;   /* separación fina desde el inicio del overlay */
    margin-bottom: 40px;
    letter-spacing: 1.1px;
}

/* ============================================================
   AVISO INFERIOR — MOVIMIENTO SUAVE Y DISCRETO
   ============================================================ */
.aviso-inferior {
    font-size: 18px;
    font-weight: 800;
    color: #ffdf4d;
    padding: 6px 18px;
    border: 2px solid rgba(255,223,77,0.75);
    border-radius: 8px;
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(2px);
    letter-spacing: 0.7px;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);

    /* NUEVO: separación vertical elegante */
    margin-top: 120px; /* antes no tenía margen → ahora baja suavemente */

    animation: movimientoSuave 3s ease-in-out infinite;
}


/* Movimiento suave vertical */
@keyframes movimientoSuave {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 4px rgba(255,223,77,0.4);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 0 12px rgba(255,223,77,0.8);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 0 4px rgba(255,223,77,0.4);
    }
}
