/* ==========================================================================
   Cervecería Layton · Hoja de Estilos Principal
   Reconstrucción visual fidedigna de https://layton.es/
   Alicante (Desde 1985) · Plus Jakarta Sans · Paleta Dark & Gold
   ========================================================================== */

:root {
    /* Paleta cromática oficial de layton.es (Astra) */
    --bg-main: #0E0D06;
    --bg-surface: #141006;
    --bg-card: #1B1B1B;
    --bg-card-hover: #24221C;
    --bg-overlay: rgba(20, 16, 6, 0.54);

    --gold-primary: #DCA54A;
    --gold-hover: #D09A40;
    --gold-light: #E8BA6B;
    --gold-subtle: rgba(220, 165, 74, 0.45);

    --text-primary: #ffffff;
    --text-secondary: #FAF5E5;
    --text-muted: #9e9b8e;
    --text-dark: #111111;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.12);

    /* Tipografía */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Dimensiones y espaciados */
    --container-max: 1240px;
    --container-narrow: 1080px;
    --header-height: 100px;

    /* Radios oficiales */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-card: 24px;
    --radius-circle: 50%;

    --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

/* ==========================================================================
   Contenedores Base
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Botones y Elementos de Acción
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13.5px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-gold {
    background-color: var(--gold-primary);
    color: #000000;
    border-color: var(--gold-primary);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #000000;
}

.btn-hero {
    padding: 14px 34px;
    font-size: 14px;
}

.btn-cta {
    padding: 14px 36px;
    font-size: 14px;
}

.btn-outline-clean {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 13px;
}

.btn-outline-clean:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Cabecera y Navegación Principal
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(14, 13, 6, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
    height: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 60px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gold-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: 0;
    text-decoration: none;
    transition: var(--transition);
}

.header-cta-btn:hover {
    border-color: #ffffff;
    color: #141006;
    background: #ffffff;
}

.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
}

/* Menú Móvil Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: #121212;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.9);
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-logo {
    height: 38px;
    width: auto;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
}

.mobile-nav-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--gold-primary);
}

.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-drawer-address {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Etiquetas Eyebrow y Encabezados Globales
   ========================================================================== */
.eyebrow-tag {
    display: inline-block;
    color: var(--gold-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-heading-clean {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.section-header-centered {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 48px;
}

.section-heading-centered {
    font-size: clamp(1.9rem, 3.3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 14px;
}

.section-sub-centered {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   1. Hero Principal (Home)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-height) + 60px) 24px 80px;
    background-size: cover;
    background-position: 47% 53%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.18;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-desc {
    color: #FAF5E5;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.65;
    max-width: 760px;
    margin: 0 0 34px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.hero-cta-wrapper {
    display: flex;
    justify-content: center;
}

/* Hero Banner para Páginas Interiores */
.page-hero-banner {
    padding: 210px 40px 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.page-hero-banner .hero-inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-hero-banner .hero-tag {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.page-hero-banner .hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    text-wrap: balance;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

@media (max-width: 976px) {
    .page-hero-banner {
        padding: 140px 32px 80px;
    }

    .page-hero-banner .hero-tag {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .page-hero-banner .hero-title {
        font-size: 52px;
    }
}

@media (max-width: 767px) {
    .page-hero-banner {
        padding: 150px 24px 80px;
    }

    .page-hero-banner .hero-title {
        font-size: 35px;
    }
}

/* ==========================================================================
   2. Sección Sobre Nosotros (Home)
   ========================================================================== */
.section-home-about {
    padding: 95px 0 85px;
    background-color: var(--bg-main);
}

.section-surface-alt {
    background-color: var(--bg-card);
}

.home-about-grid {
    display: grid;
    grid-template-columns: 38% 58%;
    gap: 4%;
    align-items: flex-start;
}

.home-about-lead {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.45;
    color: #ffffff;
    margin: 0 0 18px;
}

.home-about-text {
    font-size: 15px;
    color: #b0b0b0;
    line-height: 1.75;
    margin: 0 0 16px;
}

.home-about-btn-wrap {
    margin-top: 26px;
}

/* ==========================================================================
   3. Sección Nuestros Platos / 3 Tarjetas de Especialidades
   ========================================================================== */
.section-home-dishes {
    padding: 85px 0;
    background-color: var(--bg-main);
}

.home-cards-triad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    border-radius: 0 50px 0 50px;
    min-height: 430px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.feature-card-number::after {
    content: '';
    display: block;
    width: 46px;
    height: 2px;
    background-color: var(--gold-primary);
    margin-top: 18px;
    margin-bottom: 72px;
}

.feature-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.feature-card-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: #FAF5E5;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   4. Bloque de Cifras e Indicadores (Stats)
   ========================================================================== */
.section-home-stats {
    padding: 70px 0;
    background-color: var(--bg-main);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    font-weight: 600;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-caption {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #a0a0a0;
    display: block;
}

/* ==========================================================================
   5. Sección Nuestra Historia
   ========================================================================== */
.section-home-history {
    padding: 70px 0;
    background-color: var(--bg-main);
}

.history-grid {
    display: grid;
    grid-template-columns: 45% 40%;
    width: 100%;
    align-items: stretch;
}

.history-photo {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.history-card {
    background-color: var(--bg-card);
    border-radius: 0 80px 0 0;
    padding: 80px 72px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 18px;
}

.history-text {
    font-size: 15px;
    line-height: 1.75;
    color: #b5b5b5;
    margin: 0;
}

/* ==========================================================================
   6. Sección Lo que dicen / Reseñas Google Carrusel (Home)
   ========================================================================== */
.section-home-reviews {
    padding: 85px 0;
    background-color: var(--bg-main);
}

.reviews-carousel-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.reviews-carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 6px 2px;
}

.reviews-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.review-slide {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #222222;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-nav-btn:hover {
    background-color: var(--gold-primary);
    color: #141006;
    transform: translateY(-50%) scale(1.06);
}

.carousel-nav-btn:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

.carousel-prev {
    left: -18px;
}

.carousel-next {
    right: -18px;
}

.review-box {
    background-color: #ffffff;
    color: var(--text-dark);
    border-radius: 12px;
    padding: 22px 20px;
    height: 100%;
    min-height: 225px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.review-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.review-avatar-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.review-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.review-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
}

.avatar-dark { background-color: #1a1a1a; }
.avatar-teal { background-color: #0b7261; }
.avatar-purple { background-color: #6c46a2; }

.review-author-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.review-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-user-date {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.3;
}

.google-badge-icon {
    flex-shrink: 0;
}

.review-stars-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 12px;
}

.review-verified-svg {
    margin-left: 4px;
}

.review-body-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #2d2d2d;
    margin: 0;
}

.reviews-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.reviews-carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
    background: var(--gold-primary);
    transform: scale(1.2);
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

.google-verified-badge {
    background-color: #0b663b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    margin-left: auto;
}

.google-verified-badge:hover {
    background-color: #0e7c48;
    color: #ffffff;
}

/* ==========================================================================
   7. Sección Descubre la Diferencia / Propuesta de Valor (Home)
   ========================================================================== */
.section-home-value {
    padding: 85px 0 95px;
    background-color: var(--bg-main);
}

.value-showcase-media {
    width: 100%;
    margin: 0 auto 52px;
    border-radius: 0 56px 0 56px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.value-showcase-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.value-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.value-col {
    padding: 0 10px;
}

.value-number {
    color: var(--gold-primary);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.value-col-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 12px;
}

.value-col-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #b0b0b0;
    margin: 0;
}

/* ==========================================================================
   8. Sección CTA Común "No esperes más"
   ========================================================================== */
.section-common-cta {
    padding: 105px 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
}

.cta-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-heading {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.22;
    color: #ffffff;
    margin: 0 0 16px;
}

.cta-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0 0 32px;
}

.cta-btn-wrap {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Pie de Página Oficial (Footer)
   ========================================================================== */
.site-footer {
    background-color: #000000;
    padding: 42px 24px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-copyright {
    font-size: 13.5px;
    color: #888888;
    margin: 0 0 12px;
}

.footer-legal-link {
    color: var(--gold-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.footer-legal-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ==========================================================================
   PÁGINA CARTA (carta.php) · Tarjetas Visuales, Búsqueda, Categorías & Alérgenos
   ========================================================================== */
.page-carta-wrapper {
    padding: calc(var(--header-height) + 46px) 0 80px;
    background-color: var(--bg-main);
    min-height: 100vh;
}

.carta-container-wide {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.carta-header-block {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 38px;
}

.carta-main-title {
    color: var(--gold-primary);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 6px 0 12px;
    line-height: 1.15;
}

.carta-subtitle {
    color: #d6d3cb;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 10px;
}

.carta-updated-date {
    color: #9e9b93;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin: 0 0 26px;
}

/* Barra de Búsqueda Prominente */
.menu-search-standalone {
    display: flex;
    justify-content: center;
    width: 100%;
}

.menu-search-box {
    position: relative;
    max-width: 560px;
    width: 100%;
}

.menu-search-box .search-icon-svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    pointer-events: none;
    transition: color 0.2s ease;
}

.menu-search-input {
    width: 100%;
    padding: 13px 44px 13px 48px;
    background: #181711;
    border: 1px solid rgba(220, 165, 74, 0.32);
    border-radius: 9999px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.menu-search-input::placeholder {
    color: #9a968c;
}

.menu-search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: #201e16;
    box-shadow: 0 0 0 3px rgba(220, 165, 74, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e5e5;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-clear-btn:hover {
    background: var(--gold-primary);
    color: #0E0D06;
}

.search-clear-btn:focus-visible,
.cat-nav-arrow:focus-visible,
.tab-btn:focus-visible,
.allergen-badge-icon:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

/* Rail Segmentado de Categorías */
.category-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 24px;
    width: 100%;
    position: relative;
}

.category-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #171611;
    border: 1px solid rgba(220, 165, 74, 0.26);
    border-radius: 9999px;
    padding: 6px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9999px;
    color: #d8d5cd;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
    background: var(--gold-primary);
    color: #0E0D06;
    border-color: var(--gold-primary);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(220, 165, 74, 0.35);
}

.tab-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gold-primary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.tab-btn.active .tab-btn-icon {
    color: #0E0D06;
}

.tab-btn:hover .tab-btn-icon {
    transform: scale(1.08);
}

.tab-btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: #d6d3cb;
    line-height: 1;
}

.tab-btn.active .tab-btn-count {
    background: rgba(14, 13, 6, 0.18);
    color: #0E0D06;
}

.cat-nav-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #171611;
    border: 1px solid rgba(220, 165, 74, 0.35);
    color: var(--gold-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.cat-nav-arrow:hover {
    background: var(--gold-primary);
    color: #0E0D06;
    border-color: var(--gold-primary);
}

.cat-nav-arrow.visible {
    display: flex;
}

.cat-nav-arrow.disabled {
    opacity: 0.28;
    pointer-events: none;
    cursor: default;
}

/* Banner Dinámico de Descripción de Categoría */
.category-description-bar {
    margin: 0 auto 36px;
    max-width: 780px;
    text-align: center;
}

.category-desc-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 26px;
    background: #171611;
    border: 1px solid rgba(220, 165, 74, 0.3);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.category-desc-en {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gold-primary);
}

.category-desc-text {
    font-size: 0.94rem;
    color: #dcd9d0;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Grid Responsivo de Platos (4 cols -> 3 -> 2 -> 1) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: #171611;
    border: 1px solid rgba(220, 165, 74, 0.16);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.25s ease;
    position: relative;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.38);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 165, 74, 0.6);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.product-card-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    background: #12110b;
    overflow: hidden;
}

.product-card-top.is-vector {
    aspect-ratio: 16 / 10;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-placeholder-visual {
    width: 100%;
    height: 100%;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 14px;
    text-align: center;
    color: var(--gold-primary);
    background: radial-gradient(circle at 50% 42%, rgba(220, 165, 74, 0.16) 0%, #17150e 65%, #11100a 100%);
    border-bottom: 1px solid rgba(220, 165, 74, 0.14);
}

.product-placeholder-artwork {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    transition: transform 0.35s ease;
}

.cat-illustration-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.cat-illus-custom {
    width: 52px;
    height: 52px;
    color: var(--gold-light);
}

.product-card:hover .product-placeholder-artwork {
    transform: translateY(-3px) scale(1.05);
}

.product-placeholder-cat-name {
    font-size: 0.72rem;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.25;
    max-width: 92%;
}

.product-placeholder-cat-en {
    font-size: 0.68rem;
    font-style: italic;
    color: #9e9b93;
    line-height: 1.2;
}

.product-badge-float {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(14, 13, 6, 0.9);
    border: 1px solid var(--gold-primary);
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
}

.product-card-body {
    padding: 16px 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.product-titles-wrap {
    min-width: 0;
    flex: 1;
}

.product-title {
    font-size: 1.02rem;
    color: #ffffff;
    line-height: 1.28;
    font-family: var(--font-sans);
    font-weight: 700;
    margin: 0;
}

.product-title-en {
    font-size: 0.78rem;
    color: #b5b1a8;
    font-style: italic;
    margin-top: 3px;
    line-height: 1.3;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold-primary);
    font-family: var(--font-sans);
    white-space: nowrap;
    flex-shrink: 0;
}

.product-price small {
    font-size: 0.72rem;
    font-weight: 600;
    color: #b5b1a8;
    margin-left: 2px;
}

.product-descriptions-wrap {
    margin-bottom: 12px;
}

.product-description {
    font-size: 0.84rem;
    color: #d1cec5;
    line-height: 1.45;
    margin: 0;
}

.product-description-en {
    font-size: 0.77rem;
    color: #9e9b93;
    font-style: italic;
    line-height: 1.4;
    margin: 3px 0 0;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(220, 165, 74, 0.14);
    padding-top: 10px;
    margin-top: auto;
}

.product-allergens-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.allergens-label-mini {
    font-size: 0.69rem;
    font-weight: 700;
    color: #a6a39a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.allergens-icons-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.allergen-badge-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.allergen-badge-icon svg,
.allergen-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.allergen-badge-icon:hover {
    transform: translateY(-2px) scale(1.14);
    box-shadow: 0 4px 12px rgba(220, 165, 74, 0.4);
}

.allergens-none-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    color: #9e9b93;
    font-weight: 500;
}

.allergens-none-tag svg {
    color: #4ade80;
}

.carta-no-results {
    text-align: center;
    padding: 56px 20px;
    background: #171611;
    border: 1px dashed rgba(220, 165, 74, 0.3);
    border-radius: 16px;
    margin-top: 24px;
}

.carta-no-results p {
    color: #d6d3cb;
    font-size: 1rem;
    margin: 0 0 18px;
}

/* Banner Informativo Alérgenos bajo el Grid */
.carta-allergens-banner {
    margin-top: 44px;
    background: linear-gradient(135deg, #1b1912 0%, #12110b 100%);
    border: 1px solid rgba(220, 165, 74, 0.35);
    border-radius: 16px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.banner-allergens-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.preview-icons-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-mini {
    width: 30px;
    height: 30px;
    min-width: 30px;
}

.banner-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 0.88rem;
    color: #c9c6be;
    margin: 0;
}

.carta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Sección Guía y Significado de los 14 Alérgenos UE */
.section-alergenos {
    padding: 85px 0 90px;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-subtle);
}

.allergens-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.allergen-legend-card {
    background: #14130e;
    border: 1px solid rgba(220, 165, 74, 0.16);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.allergen-legend-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.legend-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.legend-icon-wrapper {
    width: 46px;
    height: 46px;
    min-width: 46px;
    flex-shrink: 0;
}

.legend-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.legend-code-pill {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 2px 8px;
    background: rgba(220, 165, 74, 0.14);
    border: 1px solid rgba(220, 165, 74, 0.35);
    color: var(--gold-primary);
    border-radius: 4px;
}

.legend-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.legend-title-en {
    font-size: 0.78rem;
    font-style: italic;
    color: #a6a39a;
}

.legend-desc {
    font-size: 0.86rem;
    color: #cfccc4;
    line-height: 1.55;
    margin: 0;
}

.allergens-advisory-box {
    background: rgba(220, 165, 74, 0.08);
    border: 1px solid rgba(220, 165, 74, 0.3);
    border-left: 4px solid var(--gold-primary);
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.advisory-icon {
    color: var(--gold-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.advisory-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.96rem;
    margin-bottom: 6px;
}

.advisory-text p {
    color: #d6d3cb;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   PÁGINA SERVICIOS (servicios.php)
   ========================================================================== */
.section-services-blocks {
    padding: 85px 0;
    background-color: var(--bg-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.services-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.service-card-media {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-body {
    padding: 38px 34px;
}

.service-card-number {
    color: var(--gold-primary);
    font-size: 1.35rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.service-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 16px;
}

.service-card-desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: #b5b5b5;
    margin: 0;
}

/* ==========================================================================
   PÁGINA SOBRE NOSOTROS (nosotros.php)
   ========================================================================== */
.section-about-story {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.about-story-stack {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-panoramic-media {
    width: 100%;
    border-radius: 0 80px 0 80px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.about-panoramic-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.section-mission-values {
    padding: 70px 0 85px;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-subtle);
}

.mission-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.mission-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 14px;
}

.mission-desc {
    font-size: 15px;
    line-height: 1.75;
    color: #b5b5b5;
    margin: 0;
}

.section-faq {
    padding: 100px 0;
    background-color: var(--bg-surface-alt);
}

.faq-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.faq-col-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 36px;
}

.faq-col-media {
    display: flex;
    align-items: flex-start;
}

.faq-side-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 0 50px 0 50px;
    display: block;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.faq-header {
    text-align: left;
    margin-bottom: 0;
}

.faq-main-title {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    overflow: hidden;
    background-color: var(--bg-main);
}

.faq-question-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question-btn:hover {
    color: var(--gold-primary);
}

.faq-question-btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: -2px;
}

.faq-icon {
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
}

.faq-item:hover .faq-icon,
.faq-item.active .faq-icon {
    color: var(--gold-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer-pane {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
    background-color: var(--bg-main);
    padding: 0 24px;
}

.faq-item.active .faq-answer-pane {
    max-height: 360px;
    padding: 0 24px 24px;
}

.faq-answer-pane p {
    font-size: 15px;
    line-height: 1.7;
    color: #c9c6be;
    margin: 0;
}

@media (max-width: 1024px) {
    .section-about-story {
        padding: 80px 0;
    }

    .about-story-stack {
        gap: 50px;
    }

    .about-panoramic-media {
        border-radius: 0 50px 0 50px;
    }

    .about-panoramic-img {
        height: 350px;
    }

    .section-faq {
        padding: 80px 0;
    }

    .faq-split-grid {
        gap: 40px;
    }

    .faq-side-img {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .section-about-story {
        padding: 64px 0;
    }

    .about-panoramic-img {
        height: 300px;
    }

    .section-faq {
        padding: 64px 0;
    }

    .faq-split-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .faq-side-img {
        height: 300px;
    }

    .faq-question-btn {
        padding: 16px;
        font-size: 16px;
    }

    .faq-item.active .faq-answer-pane {
        padding: 0 16px 16px;
    }
}

/* ==========================================================================
   PÁGINA CONTACTO (contacto.php)
   ========================================================================== */
.section-contact-info-blocks {
    padding: 100px 0 24px;
    background-color: var(--bg-main);
}

.contact-quad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: stretch;
}

.contact-quad-col {
    padding: 0 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-quad-col:first-child {
    padding-left: 0;
}

.contact-quad-col:last-child {
    padding-right: 0;
}

.contact-quad-col:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-quad-num {
    color: var(--gold-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
    line-height: 1;
}

.contact-quad-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 15px;
    line-height: 1.25;
}

.contact-quad-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #d6d2ca;
    margin: 0;
}

.contact-quad-desc strong {
    color: #ffffff;
    font-weight: 600;
}

.contact-quad-action {
    margin-top: 15px;
}

.contact-quad-link-big {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-quad-link-big:hover {
    color: var(--gold-primary);
}

.contact-quad-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-quad-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.contact-quad-link:focus-visible,
.contact-quad-link-big:focus-visible,
.contact-map-btn:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 3px;
}

.section-contact-map {
    padding: 56px 0 80px;
    background-color: var(--bg-main);
}

.contact-map-frame {
    width: 100%;
    background-color: #19160f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.contact-map-iframe {
    display: block;
    width: 100%;
    height: 650px;
    border: 0;
}

.contact-map-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    background-color: #19160f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: none;
}

.contact-map-address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d6d2ca;
    font-size: 14.5px;
    line-height: 1.5;
}

.contact-map-address svg {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.contact-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(220, 165, 74, 0.55);
    border-radius: 4px;
    color: var(--gold-primary);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-map-btn:hover {
    background-color: var(--gold-primary);
    color: #141006;
    border-color: var(--gold-primary);
}

@media (max-width: 1024px) {
    .section-contact-info-blocks {
        padding: 80px 0 24px;
    }

    .contact-quad-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 0;
    }

    .contact-quad-col {
        padding: 0 24px;
        border-right: none;
    }

    .contact-quad-col:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.14);
    }

    .contact-quad-col:nth-child(even) {
        padding-right: 0;
    }

    .contact-map-iframe {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .section-contact-info-blocks {
        padding: 64px 0 16px;
    }

    .contact-quad-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-quad-col {
        padding: 0 0 32px;
        margin-bottom: 32px;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        text-align: center;
        align-items: center;
    }

    .contact-quad-col:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .contact-quad-title {
        font-size: 1.35rem;
    }

    .section-contact-map {
        padding: 40px 0 64px;
    }

    .contact-map-iframe {
        height: 350px;
    }

    .contact-map-actions {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .contact-map-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   PÁGINA LEGAL (aviso-legal.php)
   ========================================================================== */
.section-legal-page {
    padding: 85px 0;
    background-color: var(--bg-main);
}

.legal-card-box {
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 50px 45px;
    border: 1px solid var(--border-subtle);
}

.legal-section-h2 {
    color: var(--gold-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 32px 0 14px;
}

.legal-section-h2:first-of-type {
    margin-top: 0;
}

.legal-card-box p {
    font-size: 15px;
    line-height: 1.75;
    color: #cccccc;
    margin: 0 0 16px;
}

.legal-list {
    list-style: square;
    margin: 0 0 20px 24px;
    padding: 0;
    color: #cccccc;
}

.legal-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.gold-link {
    color: var(--gold-primary);
}

/* Botón flotante Volver Arriba */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--gold-primary);
    color: #000000;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Móvil, Tablet y Escritorio)
   ========================================================================== */
@media (max-width: 1024px) {
    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-cards-triad {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        min-height: 340px;
    }

    .history-grid {
        grid-template-columns: 45% 55%;
    }

    .history-photo {
        border-radius: 0;
        min-height: 360px;
        max-height: none;
    }

    .history-card {
        border-radius: 0 80px 0 0;
        padding: 48px 36px;
    }

    .review-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .carousel-prev {
        left: -10px;
    }

    .carousel-next {
        right: -10px;
    }

    .value-columns-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mission-values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .header-cta-btn {
        display: none;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .value-showcase-img {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-photo {
        min-height: 280px;
        max-height: 360px;
        border-radius: 0;
    }

    .history-card {
        border-radius: 0 50px 0 0;
        padding: 44px 24px;
    }
}

@media (max-width: 639px) {
    .review-slide {
        flex: 0 0 100%;
    }

    .carousel-prev {
        left: -6px;
    }

    .carousel-next {
        right: -6px;
    }
}

@media (max-width: 600px) {
    .brand-logo-img {
        height: 44px;
    }

    .hero-section {
        min-height: 100svh;
        padding-top: calc(var(--header-height) + 30px);
    }

    .feature-card {
        padding: 34px 26px;
        min-height: 320px;
    }

    .value-showcase-media {
        border-radius: 0 36px 0 36px;
        margin-bottom: 36px;
    }

    .value-showcase-img {
        height: 230px;
    }

    .feature-card-number::after {
        margin-bottom: 40px;
    }

    .history-card {
        padding: 30px 20px;
    }

    .legal-card-box {
        padding: 30px 20px;
    }
}

/* Responsive específico de Carta Visual y Alérgenos */
@media (max-width: 1140px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 820px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-tabs {
        width: 100%;
        border-radius: 16px;
        padding: 6px;
    }

    .carta-allergens-banner {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .carta-banner-btn {
        width: 100%;
        justify-content: center;
    }

    .allergens-advisory-box {
        flex-direction: column;
        gap: 12px;
        padding: 18px 20px;
    }
}

@media (max-width: 520px) {
    .carta-container-wide {
        padding: 0 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-desc-inner {
        width: 100%;
        border-radius: 14px;
        padding: 12px 16px;
    }
}

/* ==========================================================================
   TRADUCTOR FLOTANTE EN VIVO (Google Translate sin barra superior ni popups)
   ========================================================================== */
body {
    top: 0 !important;
}

#google_translate_element {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

.layton-translate-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 950;
    font-family: var(--font-sans);
}

.layton-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    background: #171611;
    border: 1px solid rgba(220, 165, 74, 0.55);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.layton-lang-toggle:hover {
    background: #222018;
    border-color: var(--gold-light);
    transform: translateY(-1px);
}

.layton-lang-toggle:focus-visible,
.layton-lang-option:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.lang-current-flag,
.lang-opt-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lang-flag-svg {
    width: 22px;
    height: 15px;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.lang-current-code {
    line-height: 1;
}

.lang-toggle-chevron {
    color: var(--gold-primary);
    transition: transform 0.22s ease;
}

.layton-lang-toggle[aria-expanded="true"] .lang-toggle-chevron {
    transform: rotate(180deg);
}

.layton-lang-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 228px;
    max-height: 330px;
    overflow-y: auto;
    background: #15140e;
    border: 1px solid rgba(220, 165, 74, 0.5);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.72);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) #15140e;
}

.layton-lang-menu[hidden] {
    display: none;
}

.layton-lang-menu::-webkit-scrollbar {
    width: 5px;
}

.layton-lang-menu::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 9999px;
}

.layton-lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #e9e6de;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.layton-lang-option:hover {
    background: rgba(220, 165, 74, 0.16);
    color: #ffffff;
}

.layton-lang-option.active {
    background: rgba(220, 165, 74, 0.22);
    color: var(--gold-light);
    font-weight: 700;
}

.lang-opt-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-opt-code {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9e9b93;
    letter-spacing: 0.5px;
}

.layton-lang-option.active .lang-opt-code {
    color: var(--gold-primary);
}

.lang-opt-check {
    color: var(--gold-primary);
    opacity: 0;
    flex-shrink: 0;
}

.layton-lang-option.active .lang-opt-check {
    opacity: 1;
}

@media (max-width: 600px) {
    .layton-translate-float {
        bottom: 18px;
        left: 16px;
    }

    .layton-lang-toggle {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .layton-lang-menu {
        width: min(228px, calc(100vw - 32px));
        max-height: 270px;
    }
}
