:root {
    /* Brand Colors */
    --brand-blue: #2150A6;
    --brand-yellow: #FAA632;
    --brand-dark: #1F1F1F;
    --brand-brown: #784600;
    --brand-light: #F9F9F9;
    --white: #FFFFFF;
    --footer-bg: #1F1F1F;
    --footer-color: #FFFFFF;

    /* Typography */
    --font-heading: 'Pacifico', cursive; /* Used as a substitute for Hello Valentica */
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --transition-fast: 0.3s ease;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-body);
    color: var(--brand-dark);
    background-color: var(--brand-light);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-heading);
    color: var(--brand-yellow);
    font-size: 1.2rem;
    margin-top: -5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--brand-yellow);
    transition: var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--brand-dark);
    transition: var(--transition-fast);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-color);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    color: var(--brand-yellow);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links a, .footer-social a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-fast);
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--brand-yellow);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add toggle logic in JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* M1-M4: Responsive typography and hero padding */
    .hero { padding: 80px 0 100px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .page-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
}

/* Helpers */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--brand-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    box-shadow: 0 4px 15px rgba(250, 166, 50, 0.4);
}

.btn-primary:hover {
    background-color: #e59325;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 166, 50, 0.6);
}

.btn-secondary {
    background-color: var(--brand-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(33, 80, 166, 0.3);
}

.btn-secondary:hover {
    background-color: #1a4085;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 80, 166, 0.5);
}

/* Typography elements */
.section-title {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 15px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--brand-dark);
    max-width: 600px;
    margin: 0 auto 50px;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 160px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1a4085 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(white 2px, transparent 2px);
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--brand-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-shape .shape-fill {
    fill: var(--brand-light);
}

/* Offerings Cards */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.offering-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    border-bottom: 4px solid transparent;
}

.offering-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--brand-yellow);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.offering-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: rgba(250, 166, 50, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--brand-yellow);
}

.offering-card h3 {
    color: var(--brand-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img {
    height: 200px;
    background-color: var(--brand-dark);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Placeholder vibrant gradients for images */
.temp-bg-1 { background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.temp-bg-2 { background: linear-gradient(120deg, #f6d365 0%, #fda085 100%); }
.temp-bg-3 { background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%); }

.card-content {
    padding: 25px;
}

.card-content h4 {
    color: var(--brand-blue);
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

/* Base Utility Extensions */
.mb-50 { margin-bottom: 50px; }
.pt-0 { padding-top: 0; }
.page-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--brand-blue);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Menu Page Styles */
.menu-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--brand-yellow);
    color: var(--brand-dark);
    padding: 8px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--brand-yellow);
    color: var(--brand-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--brand-blue);
    transition: all 0.3s ease;
}

.menu-item[data-category="colombia"] { border-left-color: #ffd54f; }
.menu-item[data-category="venezuela"] { border-left-color: #e57373; }
.menu-item[data-category="peru"] { border-left-color: #ba68c8; }
.menu-item[data-category="brasil"] { border-left-color: #81c784; }

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.menu-item-info {
    flex: 1;
    padding-right: 20px;
}

.menu-item-title {
    font-size: 1.2rem;
    color: var(--brand-dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.menu-item-subtitle {
    font-size: 0.8rem;
    color: var(--brand-dark);
    font-style: italic;
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 0.95rem;
    color: var(--brand-dark);
    opacity: 0.7;
}

.menu-item-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-blue);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-item-price--multi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.85rem;
    flex-shrink: 1;
    min-width: 0;
    text-align: right;
}

.glosario-link {
    font-style: italic;
    text-decoration: underline;
    color: inherit;
}

.tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: #e0e0e0;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Page Styles */
.about-grid {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.mt-50 { margin-top: 50px; }

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

.mv-card {
    background: var(--brand-blue);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-fast);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(33,80,166,0.3);
}

.mv-card h3 {
    color: var(--brand-yellow);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--brand-blue);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(250, 166, 50, 0.2);
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

.form-feedback {
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: none;
}
.form-feedback:not(:empty) { display: block; }
.form-feedback--ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-feedback--err {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
body.dark-theme .form-feedback--ok { background: #1e3a24; color: #a3d9a5; border-color: #2d5a33; }
body.dark-theme .form-feedback--err { background: #3a1e1e; color: #d9a3a3; border-color: #5a2d2d; }

/* Enhanced Aesthetics */
.relative-bg {
    position: relative;
    overflow: hidden;
}

.pattern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.05;
    background-image: 
        radial-gradient(var(--brand-yellow) 2px, transparent 2px),
        radial-gradient(var(--brand-blue) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: 1;
}

.content-on-top {
    position: relative;
    z-index: 2;
}

.text-glow {
    text-shadow: 0 0 15px rgba(33, 80, 166, 0.3), 0 0 30px rgba(33, 80, 166, 0.1);
}

.menu-item[data-category="entradas"] { border-left-color: #ffd54f; }
.menu-item[data-category="pastas"] { border-left-color: #e57373; }
.menu-item[data-category="principales"] { border-left-color: #ba68c8; }
.menu-item[data-category="postres"] { border-left-color: #81c784; }
.menu-item[data-category="bebidas"] { border-left-color: #4dd0e1; }

.menu-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 3;
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--brand-yellow);
}

.filter-btn.active {
    box-shadow: 0 0 15px rgba(250, 166, 50, 0.5);
    transform: scale(1.05);
}

/* --- Blog Themes --- */
.theme-historia {
    background-color: #37241B; /* Café oscuro */
    color: #D6D6D6; /* Gris */
}
.theme-historia .navbar {
    background-color: #253F56; /* Azul */
    border-bottom: 1px solid #F3D7AB; /* Madera */
}
.theme-historia .logo-text, 
.theme-historia .nav-links a, 
.theme-historia .page-title, 
.theme-historia h1, 
.theme-historia h2, 
.theme-historia h3 {
    color: #F3D7AB !important; /* Madera */
}
.theme-historia .logo-sub, .theme-historia .section-subtitle, .theme-historia p {
    color: #D6D6D6 !important; /* Gris */
}
.theme-historia .btn-secondary {
    background: transparent !important;
    border: 2px solid #F3D7AB !important; /* Madera */
    color: #F3D7AB !important; /* Madera */
}
.theme-historia .btn-secondary:hover {
    background: #F3D7AB !important;
    color: #37241B !important; /* Café oscuro */
}
.theme-historia .footer {
    background-color: var(--footer-bg);
    color: var(--footer-color);
    padding: 60px 0 20px;
    margin-top: 50px;
}
.theme-historia-card {
    background-color: #815A2F !important; /* Café */
    border: 1px solid #F3D7AB;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.theme-historia-card .card-title {
    color: #F3D7AB !important; /* Madera */
}
.theme-historia-card .card-desc {
    color: #D6D6D6 !important; /* Gris */
}
.theme-historia-card .tag {
    background-color: #F3D7AB !important; /* Madera */
    color: #37241B !important; /* Café oscuro */
}
.theme-historia-card .btn-secondary {
    background: transparent !important;
    border: 2px solid #F3D7AB !important; /* Madera */
    color: #F3D7AB !important; /* Madera */
}
.theme-historia-card .btn-secondary:hover {
    background: #F3D7AB !important;
    color: #37241B !important; /* Café oscuro */
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--brand-yellow);
    color: #1F1F1F;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
}

/* --- Premium Animations Overrides --- */
body, .navbar, .footer, .card, .menu-item, .mv-card, .contact-wrapper, .offering-card {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:active, .filter-btn:active {
    transform: scale(0.95);
}

.offering-card:hover, .highlight-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.menu-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-theme {
    --brand-dark: #E0E0E0;
    --brand-light: #121212;
    --white: #1C1C1C;
    --footer-bg: #0c1522;
    --footer-color: #CBD5E1;
}

body.dark-theme .footer {
    background-color: #0c1522;
    border-top: 2px solid rgba(250, 166, 50, 0.35);
}

body.dark-theme .footer h3,
body.dark-theme .footer h4 {
    color: var(--brand-yellow);
}

body.dark-theme .footer-bottom {
    border-top-color: rgba(250, 166, 50, 0.15);
    color: #cbd5e1;
    opacity: 1;
}

body.dark-theme .section.bg-light {
    background-color: var(--brand-light) !important;
}

/* Fix: hero-shape must not block clicks on elements below */
.hero-shape {
    pointer-events: none;
}

/* Dark theme - Nosotros & general cards */
body.dark-theme .highlight-card {
    background: #2A2A2A !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4) !important;
}

body.dark-theme .card-title {
    color: var(--brand-yellow) !important;
}

body.dark-theme .card-desc {
    color: #C0C0C0 !important;
}

body.dark-theme .offering-card {
    background: #2A2A2A !important;
}

body.dark-theme .offering-card h3 {
    color: var(--brand-yellow) !important;
}

body.dark-theme .contact-wrapper {
    background: #2A2A2A !important;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background: #1C1C1C;
    border-color: #444;
    color: #E0E0E0;
}

body.dark-theme .section-subtitle {
    color: #B0B0B0 !important;
}

body.dark-theme .navbar {
    background: #1C1C1C;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

body.dark-theme .nav-links a {
    color: #E0E0E0;
}

body.dark-theme .mobile-menu-btn span {
    background-color: #E0E0E0;
}

@media (max-width: 768px) {
    body.dark-theme .nav-links {
        background: #1C1C1C;
    }
}

/* Blog Section Selector Styles */
.blog-sections-hero {
    background: linear-gradient(135deg, #1a3a6b 0%, #0d2048 60%, #1a1a1a 100%);
    padding: 80px 0 60px;
    color: #fff;
    text-align: center;
}

.blog-sections-hero .page-title {
    color: var(--brand-yellow);
}

.blog-sections-hero .section-subtitle {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

.blog-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 40px;
    margin-top: 50px;
}

.blog-category-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    text-decoration: none;
    display: block;
    background: var(--white);
}

.blog-category-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.blog-category-cover {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog-category-cover-historia {
    background: #37241B;
}

.blog-category-cover-sabores {
    background: #1a5c38;
}

.blog-category-cover-recetas {
    background: #5C3A1A;
}

.blog-category-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.blog-category-cover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.9;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.blog-category-cover-label {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.35);
    padding: 4px 12px;
    border-radius: 20px;
}

.blog-category-body {
    padding: 25px 25px 30px;
}

.blog-category-body h2 {
    font-size: 1.7rem;
    color: var(--brand-blue);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.blog-category-body p {
    color: var(--brand-dark);
    opacity: 0.75;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-category-body .article-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured / Recent post row */
.blog-featured-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.blog-featured-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
}

.blog-featured-card.blog-featured-horizontal {
    flex-direction: row;
    max-width: 700px;
}

.blog-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 45px rgba(0,0,0,0.15);
}

.blog-featured-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-featured-cover-malta {
    background: url('../assets/images/blog/historia/malta/blog_malta.jpg') center / cover #37241B;
}

.blog-featured-cover-arepas {
    background: url('../assets/images/blog/historia/arepas/blog_arepas.jpg') center / cover #5D3A1A;
}

.blog-featured-cover-mexico {
    background: url('../assets/images/blog/historia/mexico/blog_mexico.jpg') center / cover #1a5c38;
}

.blog-featured-cover-sabores {
    background: url('../assets/images/blog/sabores/sabores/blog_sabores.jpg') center / cover #1a5c38;
}

.blog-featured-cover-recetas {
    background: url('../assets/images/blog/recetas/reina-pepiada/blog_receta-reina-pepiada.jpg') center / cover #5C3A1A;
}

.blog-featured-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-featured-body .badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.badge-historia   { background: #F3D7AB; color: #37241B; }
.badge-sabores    { background: #B8F0C5; color: #1a5c38; }
.badge-recetas    { background: #F5E6C8; color: #5C3A1A; }
.badge-popular    { background: var(--brand-yellow); color: #1F1F1F; }
.badge-reciente   { background: #c0d4f5; color: #2150A6; }
.badge-anexo      { background: #D0E8FF; color: #12253A; }
.badge-venezuela  { background: #fce4a0; color: #5a3800; }
.badge-colombia   { background: #f7c5c5; color: #6b0000; }
.badge-peru       { background: #d5c5f7; color: #3a1a6b; }
.badge-brasil     { background: #c5f0c5; color: #0a4a0a; }
.badge-argentina  { background: #c5e0f7; color: #0a3a6b; }
.badge-chile      { background: #f7c5d5; color: #6b0020; }
.badge-paraguay   { background: #f7d5c5; color: #6b2000; }
.badge-uruguay    { background: #b8d9f5; color: #0a2850; }
.badge-bolivia    { background: #f5f0c5; color: #5a4a00; }
.badge-ecuador    { background: #c5f5d5; color: #0a4a25; }
.badge-regional   { background: #e0e0e0; color: #333; }

/* Glosario */
.glosario-controls {
    max-width: 850px;
    margin: 0 auto 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.glosario-search {
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    background: var(--white);
    color: var(--brand-dark);
    transition: border-color 0.2s;
}
.glosario-search:focus { border-color: var(--brand-yellow); }

.glosario-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.glosario-filter {
    padding: 6px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: var(--white);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.glosario-filter:hover { border-color: var(--brand-yellow); }
.glosario-filter.active { background: var(--brand-yellow); border-color: var(--brand-yellow); color: #1F1F1F; }

.glosario-count {
    max-width: 850px;
    margin: 0 auto 24px;
    font-size: 0.85rem;
    color: #888;
}

.glosario-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.glosario-entry {
    padding: 22px 0;
    border-bottom: 1px solid #f0f0f0;
}
.glosario-entry:last-child { border-bottom: none; }

.glosario-term-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.glosario-word {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1.3;
}

.glosario-aka {
    font-weight: 400;
    font-size: 0.95rem;
    color: #888;
}

.glosario-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex-shrink: 0;
}

.glosario-def {
    font-size: 0.95rem;
    color: var(--brand-dark);
    line-height: 1.65;
    margin: 0;
}

.glosario-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 1rem;
}

body.dark-theme .glosario-search {
    background: #2A2A2A;
    border-color: #444;
    color: #eee;
}
body.dark-theme .glosario-filter {
    background: #2A2A2A;
    border-color: #444;
    color: #eee;
}
body.dark-theme .glosario-entry { border-bottom-color: #333; }

.blog-featured-body h3 {
    font-size: 1.1rem;
    color: var(--brand-blue);
    margin-bottom: 6px;
    line-height: 1.4;
}

.blog-featured-body p {
    font-size: 0.9rem;
    color: var(--brand-dark);
    opacity: 0.75;
    flex: 1;
    line-height: 1.5;
}

.blog-featured-meta {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--brand-dark);
    opacity: 0.55;
}

/* Blog dark mode overrides */
body.dark-theme .blog-category-card {
    background: #2A2A2A !important;
}

body.dark-theme .blog-category-body h2 {
    color: var(--brand-yellow) !important;
}

body.dark-theme .blog-category-body p {
    color: #C0C0C0 !important;
    opacity: 1 !important;
}

body.dark-theme .blog-featured-card {
    background: #2A2A2A !important;
}

body.dark-theme .blog-featured-body h3 {
    color: var(--brand-yellow) !important;
}

body.dark-theme .blog-featured-body p {
    color: #C0C0C0 !important;
    opacity: 1 !important;
}

body.dark-theme .blog-featured-meta {
    color: #999 !important;
    opacity: 1 !important;
}

/* Blog Article full-content styles */
.blog-article-header {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #0d2048 100%);
    padding: 80px 0 60px;
    color: #fff;
    text-align: center;
}

.blog-article-header.historia-header {
    background: linear-gradient(135deg, #37241B 0%, #6B4226 100%);
}

.blog-article-header.sabores-header {
    background: linear-gradient(135deg, #1a5c38 0%, #0d3020 100%);
}

.blog-article-header.recetas-header {
    background: linear-gradient(135deg, #3B1F0A 0%, #7A3F10 100%);
}

.blog-article-header .page-title {
    color: #F3D7AB;
    font-size: 2.5rem;
}

.blog-article-header.sabores-header .page-title {
    color: #B8F0C5;
}

.blog-article-header.recetas-header .page-title {
    color: #F5E6C8;
}

.blog-article-header .meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 12px;
}

.blog-article-body {
    max-width: 800px;
    margin: 60px auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--brand-dark);
}

.blog-article-body h2 {
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin: 40px 0 12px;
    font-family: var(--font-heading);
}

.blog-article-body p {
    margin-bottom: 20px;
}

.blog-article-body .hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
    display: block;
}

.blog-article-body ol,
.blog-article-body ul {
    margin: 10px 0 20px 24px;
}

.blog-article-body li {
    margin-bottom: 12px;
}

.blog-article-body strong {
    color: var(--brand-blue);
}

.blog-article-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Dark mode blog article */
body.dark-theme .blog-article-body {
    color: #D0D0D0;
}

body.dark-theme .blog-article-body h2 {
    color: var(--brand-yellow);
}

body.dark-theme .blog-article-body strong {
    color: var(--brand-yellow);
}

body.dark-theme .blog-article-nav {
    border-top-color: rgba(255,255,255,0.1);
}

/* Category index page styles */
.blog-index-header {
    padding: 70px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-index-header .container {
    position: relative;
    z-index: 1;
}

/* Placeholder image overlay on category headers */
.blog-index-header-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.20;
    z-index: 0;
}

.blog-index-header.historia-theme {
    background: linear-gradient(135deg, #37241B 0%, #8B5E3C 100%);
    color: #F3D7AB;
}

.blog-index-header.sabores-theme {
    background: linear-gradient(135deg, #0d3020 0%, #2E8B57 100%);
    color: #B8F0C5;
}

.blog-index-header.recetas-theme {
    background: linear-gradient(135deg, #3B1F0A 0%, #8B4513 100%);
    color: #F5E6C8;
}

.blog-index-header.glosario-theme {
    background: linear-gradient(135deg, #12253A 0%, #1E4D7B 100%);
    color: #D0E8FF;
}

.blog-index-header .page-title {
    color: inherit;
}

.blog-index-header .section-subtitle {
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
}

.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 850px;
    margin: 50px auto;
}

.blog-post-row {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 260px 1fr;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
}

.blog-post-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(0,0,0,0.15);
}

.blog-post-row-img {
    height: 100%;
    min-height: 160px;
}

.blog-post-row-body {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-row-body h2 {
    font-size: 1.3rem;
    color: var(--brand-blue);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-post-row-body p {
    font-size: 0.95rem;
    color: var(--brand-dark);
    opacity: 0.75;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-post-row-body .read-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-post-row-body .read-link:hover {
    color: var(--brand-yellow);
}

@media (max-width: 768px) {
    .blog-post-row {
        grid-template-columns: 1fr;
    }
    .blog-post-row-img {
        height: 180px;
    }
}

/* Dark mode blog index */
body.dark-theme .blog-post-row {
    background: #2A2A2A !important;
}

body.dark-theme .blog-post-row-body h2 {
    color: var(--brand-yellow) !important;
}

body.dark-theme .blog-post-row-body p {
    color: #C0C0C0 !important;
    opacity: 1 !important;
}

body.dark-theme .blog-post-row-body .read-link {
    color: #90b8ff !important;
}

/* ===== ¿Por qué elegirnos? ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Placeholder images — replace with real photos when available:
   assets/images/home/why_fresh.jpg
   assets/images/home/why_recipes.jpg
   assets/images/home/why_fusion.jpg  */
.why-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.why-card-body {
    padding: 28px 25px 30px;
    border-top: 4px solid var(--brand-yellow);
}

.why-card h3 {
    color: var(--brand-blue);
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.why-card p {
    color: var(--brand-dark);
    opacity: 0.75;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

body.dark-theme .why-card {
    background: #2A2A2A;
}

body.dark-theme .why-card-body {
    background: #2A2A2A;
}

body.dark-theme .why-card h3 {
    color: var(--brand-yellow);
}

body.dark-theme .why-card p {
    color: #C0C0C0;
    opacity: 1;
}

/* ===== Blog Preview (home) ===== */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-preview-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-preview-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.blog-preview-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-preview-body .badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.blog-preview-body h3 {
    color: var(--brand-blue);
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}

.blog-preview-body p {
    color: var(--brand-dark);
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
    margin: 0;
}

body.dark-theme .blog-preview-card {
    background: #2A2A2A;
}

body.dark-theme .blog-preview-body h3 {
    color: var(--brand-yellow);
}

body.dark-theme .blog-preview-body p {
    color: #C0C0C0;
    opacity: 1;
}

/* ===== Contact Page Layout ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.contact-form-wrapper .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-panel .section-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    padding: 20px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.contact-info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-info-item strong {
    display: block;
    color: var(--brand-blue);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-info-item p {
    color: var(--brand-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

.contact-map-section {
    margin-top: 60px;
}

.contact-map-section h2 {
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

body.dark-theme .contact-form-wrapper {
    background: #2A2A2A;
}

body.dark-theme .contact-info-item {
    background: #2A2A2A;
}

body.dark-theme .contact-info-item p {
    color: #C0C0C0;
    opacity: 1;
}

/* ===== Allergen Legend (Menu) ===== */
.allergen-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 12px 18px;
    margin: 20px 0 30px;
    box-shadow: var(--shadow-soft);
}

.allergen-legend-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--brand-blue);
    white-space: nowrap;
    margin: 0;
}

.allergen-legend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.allergen-legend-list li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--brand-dark);
    white-space: nowrap;
}

.allergen-legend-list li span {
    font-size: 1rem;
    line-height: 1;
}

body.dark-theme .allergen-legend {
    background: #2A2A2A;
    border-color: rgba(255,255,255,0.08);
}

body.dark-theme .allergen-legend-list li {
    color: #C0C0C0;
}

