/*
Theme Name: Agarimö Churrería
Theme URI: https://agarimochurreria.com
Author: BytesPC
Author URI: https://bytespc.es
Description: Tema personalizado y elegante para Agarimö Churrería en Alcalá de Henares.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agarimo
*/

:root {
    --bg-color: #fcfbfa;
    --text-main: #2d2a29;
    --accent-copper: #c58d59;
    --accent-dark: #212427;
    --marble-light: #f4f2ef;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

html {
    scroll-padding-top: 150px; /* Evita que la cabecera tape los títulos al usar el menú */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, .logo-text {
    font-family: 'Playfair Display', serif;
}

/* =========================================
   CABECERA CLARA Y ELEGANTE
   ========================================= */
header {
    height: 130px; 
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 2px solid var(--accent-copper);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container a {
    height: 100%;
    display: flex;
    align-items: center;
}

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

/* MENÚ DE NAVEGACIÓN ESCRITORIO */
nav.main-navigation {
    display: block;
    margin-left: auto;
}

nav ul.menu-principal-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-copper);
}

/* Ocultar el botón hamburguesa en ordenadores */
.menu-toggle {
    display: none;
}

/* =========================================
   SECCIONES
   ========================================= */
/* ACTUALIZACIÓN: Nueva foto de fondo con filtro oscuro al 65% */
.hero {
    background: linear-gradient(rgba(33, 36, 39, 0.65), rgba(33, 36, 39, 0.65)), url('https://agarimochurreria.es/wp-content/uploads/2026/10/local.jpg') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero h2 span {
    color: var(--accent-copper);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 300;
    color: #e2dfdb;
}

.btn {
    background-color: var(--accent-copper);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background-color: #d4a070;
    transform: translateY(-2px);
}

section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h3 {
    font-size: 2.5rem;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #777;
    font-size: 1.1rem;
}

/* About / Local */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact / Location */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.contact-info h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-dark);
}

.contact-info ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.contact-info li {
    margin-bottom: 0.8rem;
    color: #555;
}

.contact-info li strong {
    color: var(--accent-dark);
}

/* Footer */
footer {
    background-color: var(--accent-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================= */
@media (max-width: 768px) {
    /* Ajustes de cabecera para móvil */
    header {
        height: 90px;
        padding: 0 1rem;
    }

    .logo-container img {
        height: 70px;
    }

    /* Mostrar el botón hamburguesa */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    /* Crear las 3 rayitas */
    .hamburger {
        display: block;
        width: 28px;
        height: 3px;
        background-color: var(--accent-dark);
        position: relative;
        transition: var(--transition);
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 28px;
        height: 3px;
        background-color: var(--accent-dark);
        left: 0;
        transition: var(--transition);
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    /* Ocultar el menú por defecto en móvil */
    nav.main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2rem 0;
        border-bottom: 2px solid var(--accent-copper);
    }
    
    /* Mostrar el menú cuando tiene la clase 'active' */
    nav.main-navigation.active {
        display: block;
    }

    /* Formato de columna para el menú desplegable */
    nav ul.menu-principal-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    /* Ajustes de las secciones en móvil */
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }

    section {
        padding: 3rem 5%;
    }
}