@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Estilo para el header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.807);
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.5s ease;
    padding: 20px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

/* Contenedor principal del logo y nombre */
.logo-container {
    display: flex;
    align-items: center;
}

/* Estilo para el grupo logo + nombre */
.logo-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 0;
}

/* Ajustes para el logo */
.logo {
    width: 70px;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Estilo para el nombre de la empresa */
.company-name {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-left: 5px;
    padding: 0;
    white-space: nowrap;
    line-height: 1;
}

/* ===== REGLA PARA OCULTAR EN MÓVIL - CON PRIORIDAD MÁXIMA ===== */
@media (max-width: 950px) {
    .company-name,
    .company-name.mobile-hide,
    span.company-name {
        display: none !important; /* Forzamos la ocultación con !important */
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
    }
    
    /* Ajustamos el padding del header en móvil */
    .header {
        padding: 15px 15px !important;
    }
}

/* Versión desktop - todo visible */
@media (min-width: 951px) {
    .company-name,
    .company-name.mobile-hide {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Efecto hover para ambos elementos */
.logo-brand:hover .logo {
    filter: drop-shadow(0 0 3px rgba(255, 191, 0, 0.7));
}

.logo-brand:hover .company-name {
    color: rgb(255, 191, 0);
}

/* Estilos del menú de navegación */
.navigation ul {
    list-style: none;
    display: none;
    padding: 0;
    margin: 0;
}

.navigation ul li {
    position: relative;
}

.navigation ul li a {
    text-transform: none;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    padding: 20px;
    display: block;
    transition: all .2s ease;
}

.navigation ul li a:hover {
    color: rgb(255, 191, 0);
}

/* Muestra el menú cuando el checkbox está marcado */
.menu-checkbox:checked ~ .navigation ul {
    display: block;
}

/* En pantallas grandes, el menú siempre es visible */
@media (min-width: 951px) {
    .navigation ul {
        display: flex;
    }
}

/* Estilos del menú de hamburguesa */
.hamburger {
    cursor: pointer;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: rgb(255, 225, 0);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.menu-checkbox:checked + .hamburger svg {
    transform: rotate(-45deg);
}

.menu-checkbox:checked + .hamburger svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Responsivo */
@media(max-width: 950px) {
    .header {
        padding: 15px 15px;
    }

    .navigation ul li {
        width: 100%;
    }

    .navigation ul li a {
        padding: 12px 30px 12px 15px;
    }

    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
    }
}

@media (min-width: 951px) {
    .hamburger {
        display: none;
    }
}

/* Ocultar el checkbox */
.menu-checkbox {
    display: none;
}

/* Efectos de scroll */
.header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    transition: background-color 0.3s ease;
}

.navigation ul li a.text-color-change {
    color: #ffffff;
    transition: color 0.3s ease;
}

.header.scrolled .navigation ul li a:hover {
    color: rgb(255, 191, 0) !important;
    text-shadow: 0 0 5px rgba(255, 191, 0, 0.3);
}

/* Estilos para "Reserva" en móvil */
@media (max-width: 950px) {
    .header.scrolled .nav-reserva-text a:hover {
        color: #FFBF00 !important;
        text-shadow: 0 0 8px rgba(255, 191, 0, 0.7);
    }
}

/* Carrito personalizado */
.custom-cart-item {
    margin-left: -15px;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.custom-cart-icon {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.custom-cart-item:hover .custom-cart-icon {
    filter: brightness(0) invert(79%) sepia(28%) saturate(1554%) hue-rotate(360deg);
    transform: scale(1.08);
}

/* Versión móvil - Texto "Reserva" */
@media (max-width: 950px) {
    .custom-cart-item {
        display: none;
    }
    
    .nav-reserva-text {
        display: block;
        width: 100%;
    }
    
    .nav-reserva-text a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 12px 30px 12px 15px;
        display: block;
        transition: all 0.3s ease;
    }
    
    .nav-reserva-text a:hover {
        color: #FFBF00;
        text-shadow: 0 0 8px rgba(255, 191, 0, 0.7);
    }
}

/* Versión desktop - Carrito visible */
@media (min-width: 951px) {
    .nav-reserva-text {
        display: none !important;
    }
    
    .custom-cart-item {
        display: flex;
    }
}