/* Reset básico y tipografía */
:root {
    --primary-color: #5D4037; /* Marrón chocolate */
    --secondary-color: #D7CCC8; /* Crema suave */
    --text-color: #333;
    --bg-light: #F5F5F5;
    --lang-bg: #3e2723;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* Selector de Idioma */
.lang-selector {
    background-color: var(--lang-bg);
    color: white;
    text-align: right;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.lang-selector a {
    color: #bbb;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
}

.lang-selector a:hover {
    color: white;
    text-decoration: underline;
}

.lang-selector span {
    color: white;
    font-weight: bold;
    border-bottom: 2px solid white;
    margin: 0 5px;
    cursor: default;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('fachada2.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Secciones Generales */
.section {
    padding: 70px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
}

/* Historia (Split Layout) */
.split-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.text-content {
    flex: 1;
    min-width: 300px;
    font-size: 1.1rem;
}

.image-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Menú / Carta */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.menu-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.menu-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Galería de Fotos Completa */
.gallery-section {
    background-color: #fff;
    padding-bottom: 70px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* Contacto y Mapa */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.info, .map {
    flex: 1;
    min-width: 300px;
}

.hours-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* Footer */
footer {
    background-color: #222;
    color: #eee;
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
}

.small-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #999;
}

footer a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}
/* --- PÁGINAS DE DETALLE (POSTRES / PRODUCTOS) --- */

.detail-main {
    padding: 60px 20px 80px;
    background: #faf7f3;
}

.detail-layout {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .detail-layout {
        flex-direction: row;
        align-items: center;
    }
}

.detail-text {
    flex: 2;
}

.detail-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5em;
}

.detail-text h2 {
    font-size: 1.3rem;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
}

.detail-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
    margin-bottom: 0.75rem;
}

.detail-image {
    flex: 1.3;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* botón dentro de ficha */
.detail-main .btn {
    margin-top: 1.5rem;
}