:root {
    /* Paleta de Colores - Pub Mediterráneo */
    --color-primary: #D35400; /* Tono Teja/Ladrillo Cálido (más natural que el naranja neón) */
    --color-secondary: #2C3E50; /* Azul Marino muy oscuro (Sustituye al negro puro, más elegante) */
    --color-accent: #ECF0F1; /* Blanco Roto / Hueso */
    --color-wood: #8D6E63; /* Madera Roble (Más clara y natural) */
    --color-text: #34495E; /* Gris oscuro para texto sobre fondo claro */
    --color-bg: #FDFBF7; /* Crema muy suave (Fondo general luminoso) */
    --color-card-bg: #FFFFFF; /* Blanco puro para tarjetas */
    --color-border: #E0E0E0;

    /* Tipografías */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Espaciado */
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Bordes */
    --border-radius: 4px; /* Bordes más sutiles */
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    padding-top: 80px; /* Compensar altura de cabecera fija */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: 1100px; /* Ancho más contenido para lectura */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-primary);
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #E67E22;
    border-color: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #FFF;
}

/* --- Header & Nav --- */
header {
    background-color: #FFF;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Altura fija para la cabecera */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--color-primary);
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-md) 0 0;
    border-right: 2px solid var(--color-border);
    margin-right: var(--spacing-md);
}

.logo img {
    height: 60px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 var(--spacing-md);
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
    background-color: rgba(211, 84, 0, 0.05);
    border-bottom-color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background-color: #222;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Contrast Fix for Hero Buttons */
.hero .btn-outline {
    color: #FFF;
    border-color: #FFF;
}

.hero .btn-outline:hover {
    background-color: #FFF;
    color: var(--color-primary);
    border-color: #FFF;
}

/* Placeholder Styling - Solo visible si falla la imagen o mientras carga */
.hero.placeholder {
    /* Mantenemos el estilo de fallback si se necesita, pero por defecto intentamos cargar la imagen */
}

.hero.placeholder::before {
    /* Ocultamos el texto de placeholder si hay imagen, o lo dejamos como fallback */
    content: ""; 
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: #ddd;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* --- Sections General --- */
section {
    padding: var(--spacing-xl) 0;
    background-color: #FFF;
}

section:nth-child(even) {
    background-color: var(--color-bg); /* Alternancia sutil de fondos */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
}

/* --- Footer --- */
footer {
    background-color: var(--color-secondary);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    color: #BDC3C7;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.footer-col h3 {
    color: #FFF;
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: var(--spacing-md);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed; /* Cambiado a fixed para cubrir pantalla completa */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(44, 62, 80, 0.98); /* Fondo oscuro semitransparente elegante */
        padding: var(--spacing-xl) var(--spacing-md);
        text-align: center;
        justify-content: center;
        z-index: 999;
        backdrop-filter: blur(5px);
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }

    .nav-links a {
        color: #FFF;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.5rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001; /* Por encima del menú desplegado */
        color: var(--color-primary);
        font-size: 2rem;
        padding: 5px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Ajuste para que el contenido no quede tapado por la barra sticky inferior */
    footer {
        padding-bottom: 80px; 
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Exclusive Effects --- */
@media (max-width: 768px) {
    /* Efecto "Glassmorphism" para los botones sticky */
    .sticky-mobile-actions {
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
        padding-bottom: env(safe-area-inset-bottom); /* Respetar zona segura de iPhones nuevos */
    }

    /* Animación sutil en tarjetas al hacer scroll (requiere JS avanzado, pero preparamos el CSS) */
    .menu-item, .event-item {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
}

/* --- Sticky Mobile Actions Base (para Desktop oculto, Mobile visible) --- */
.sticky-mobile-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: #1A1A1A;
    border-top: 1px solid #333;
    z-index: 999;
}

.action-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn.call {
    background-color: #333;
}

.action-btn.map {
    background-color: var(--color-primary);
    color: #1A1A1A;
}

@media (min-width: 769px) {
    .sticky-mobile-actions {
        display: none;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1A1A1A;
    color: #FFF;
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    flex: 1 1 260px;
    font-size: 0.95rem;
    color: #F4F4F4;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-link {
    color: #F4F4F4;
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-btn {
    padding: 10px 18px;
    border-radius: 4px;
    border: 1px solid #F4F4F4;
    background: transparent;
    color: #F4F4F4;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn.primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #1A1A1A;
}

.map-placeholder {
    background: #1f1f1f;
    color: #F4F4F4;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.map-placeholder.hidden {
    display: none;
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: none;
}

.map-iframe.visible {
    display: block;
}

@media (max-width: 768px) {
    .cookie-content {
        justify-content: center;
        text-align: center;
    }
}
