/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* 1. Fondo del menú y Fuente */
/* 1. Fondo del menú desplegable y Fuente */
/* 1. ESTILO GLOBAL (Escritorio y Móvil) */
/* --- 1. FIJAR MENÚ EN TODA LA WEB --- */
/* --- 1. FIJAR MENÚ EN TODA LA WEB --- */
/* --- 1. FIJAR MENÚ GLOBAL --- */
/* 1. FIJAR CABECERA SIEMPRE ARRIBA */
.site-header {
    position: fixed !important;
    left: 0 !important;
	top: 35px !important; 
    width: 100% !important;
    z-index: 9999 !important;
}

/* 2. ESPACIO PARA QUE EL MENÚ NO TAPE EL CONTENIDO */
html {
    scroll-padding-top: 130px !important;
    scroll-behavior: smooth;
}

/* 3. ESTILO MÓVIL FORZADO (Venciendo a Assets) */
@media (max-width: 768px) {

    /* ESTILO DE TEXTO (La ruta exacta que viste) */
    body .site-navigation-dropdown ul.menu li a {
        background-color: #ffffff !important;
        color: #0f2424 !important;
        font-family: 'Space Grotesk', sans-serif !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        display: block !important;
        padding: 15px 20px !important;
    }

    /* Quitar línea al último elemento para que no se vea doble */
    body .site-navigation-dropdown ul.menu li:last-child {
        border-bottom: none !important;
    }

    /* Si el botón de hamburguesa tiene fondo blanco, lo quitamos */
    body .site-header .menu-toggle,
    body .site-header .menu-toggle:hover {
        background-color: transparent !important;
        color: #0f2424 !important;
    }
}

/* Estilo para el botón del menú con la clase .boton-destacado */
.boton-destacado a {
	display: flex !important; /* Cambia inline-block por flex */
    align-items: center;      /* Centra el texto "RESERVAS" verticalmente */
    justify-content: center;  /* Centra el texto "RESERVAS" horizontalmente */
    background-color: #155863 !important; /* El color terracota de la imagen */
    color: #ffffff !important;            /* Texto verde muy oscuro/negro */
    padding: 12px 30px !important;
    border-radius: 8px !important;       /* Bordes redondeados */
    border: 1px solid #000 !important;    /* Borde negro fino */
    font-weight: 900 !important;          /* Fuente extra negrita */
    text-transform: uppercase;            /* Todo en mayúsculas */
    text-decoration: none;
    letter-spacing: 1px;
	
    /* La clave: sombra sólida negra desplazada a la derecha y abajo */
    box-shadow: 2px 2px 0px 0px #000; 
    transition: all 0.2s ease;
}

/* Efecto al pasar el ratón (se hunde un poco) */
.boton-destacado a:hover {
    box-shadow: 1px 1px 0px 0px #000;
    transform: translate(3px, 3px);
}

/* Alineación vertical para Escritorio */
@media (min-width: 769px) {
    /* 1. Forzamos al contenedor del menú a usar Flexbox */
    .site-navigation ul.menu {
        display: flex !important;
        align-items: center !important; /* Centra verticalmente todos los hijos */
        justify-content: flex-end;      /* Alinea el menú a la derecha */
        gap: 15px;                      /* Espacio uniforme entre elementos */
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* 2. Quitamos márgenes que puedan desviar al botón */
    .boton-destacado {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 3. Aseguramos que los enlaces normales no tengan alturas raras */
    .site-navigation ul.menu li a {
        display: flex !important;
        align-items: center !important;
        padding: 10px 15px !important;
        height: auto !important;
    }
}

/* ==========================================
   NUEVO: TAMAÑO DEL LOGO DEL MENÚ
========================================== */

/* Tamaño para ordenadores y tablets grandes */
@media (min-width: 769px) {
    .site-header .site-branding .site-logo img {
        width: 140px !important;    /* Ajusta este valor para ordenadores */
        max-width: 140px !important;
        height: auto !important;
    }
}

/* Tamaño para teléfonos móviles */
@media (max-width: 768px) {
    .site-header .site-branding .site-logo img {
        width: 100px !important;     /* Ajusta este valor para pantallas móviles */
        max-width: 100px !important;
        height: auto !important;
    }
}

/* ==========================================
   CORRECCIÓN: BARRA SUPERIOR SÓLIDA
========================================== */
.top-bar-personalizada {
    display: block !important;
    visibility: visible !important;
    height: 35px !important;
    background-color: #0f2424 !important; /* Color verde oscuro sólido */
    color: #faf6eb !important;            /* Texto crema */
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 13px;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important; /* Fuerza a estar por encima de todo */
    box-sizing: border-box !important;
}

/* Margen superior interno para que el contenido no se pegue al borde */
.top-bar-content {
    max-width: 1140px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.top-bar-sociales a {
    color: #faf6eb !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* REAJUSTE DEL MENÚ PRINCIPAL: Se acopla justo debajo de la barra */

/* Corrección si estás logueado en WordPress (evita que la barra negra de WP la tape) */
body.admin-bar .top-bar-personalizada {
    top: 32px !important;
}
body.admin-bar .site-header {
    top: 67px !important; /* 32px de WP + 35px de la barra */
}

/* Ajuste del scroll de la página */
html {
    scroll-padding-top: 165px !important;
}

/* Estilo específico para los nuevos logotipos SVG de Instagram */
.logo-insta-svg {
    width: 14px !important;
    height: 14px !important;
    fill: #faf6eb !important; /* Fuerza el color crema coincidiendo con el texto */
    vertical-align: middle !important;
    display: inline-block !important;
    margin-right: 4px !important;
}

.enlace-social {
    display: inline-flex !important;
    align-items: center !important;
}
/* ==========================================
   OPTIMIZACIÓN MÓVIL DE LA TOP BAR
========================================== */
@media (max-width: 768px) {
    /* 1. Ocultamos el separador y los dos enlaces de Instagram */
    .top-bar-personalizada .separator,
    .top-bar-personalizada .enlace-social {
        display: none !important;
    }

    /* 2. Centramos y distribuimos los teléfonos para que ocupen bien el espacio */
    .top-bar-personalizada .top-bar-content {
        justify-content: center !important; /* Centra el bloque de teléfonos */
        gap: 20px;                         /* Añade una separación limpia entre los dos números */
        padding: 0 10px;
    }

    /* 3. Aseguramos el tamaño de fuente óptimo para que quepan en cualquier pantalla de móvil */
    .top-bar-personalizada .item-bar {
        font-size: 12px !important;
        white-space: nowrap;               /* Evita que el número se rompa en dos líneas */
    }
}


