/* ============================================
   Font Face Declarations
   ============================================ */
@font-face {
    font-family: 'Agenor Neue';
    src: url('assets/fonts/AgenorNeue-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Knickerbockers Grotesk';
    src: url('assets/fonts/TT Knickerbockers Grotesk Trial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS Variables - Paleta de Colores Fratellino
   ============================================ */
:root {
    --yellow-primary: #EEBD31;
    --yellow-rgb: 238, 189, 49;
    --terracotta: #D9583C;
    --terracotta-rgb: 217, 88, 60;
    --blue-dark: #1E3A8A;
    --blue-dark-rgb: 30, 58, 138;
    --cream: #FBFAED;
    --cream-rgb: 251, 250, 237;
    --red-pasta: #C41E3A;
    --red-pasta-rgb: 196, 30, 58;
    --yellow-highlight: #FFD700;
    --yellow-highlight-rgb: 255, 215, 0;
    --black: #000000;
    --white: #FFFFFF;
    
    /* Typography */
    /* TT Knickerbockers Grotesk: para títulos y elementos enfatizados */
    /* Agenor Neue: para bloques de texto relacionados a la marca */
    --font-display: 'TT Knickerbockers Grotesk', sans-serif;
    --font-heading: 'TT Knickerbockers Grotesk', sans-serif;
    --font-body: 'Agenor Neue', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Header / Navbar
   ============================================ */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo-image {
    height: 100%;
    width: auto;
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-image {
    opacity: 0.9;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    justify-content: center;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--terracotta);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    gap: var(--spacing-md);
    transition: right 0.3s ease;
    z-index: 1000;
}

.nav.active {
    right: 0;
}

.nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--black);
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid transparent;
    text-align: center;
    width: 100%;
}

.nav-link:hover {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
}

.nav-link-cta {
    background-color: var(--yellow-primary);
    color: var(--black);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    margin-top: var(--spacing-md);
    width: 100%;
    max-width: 200px;
}

.nav-link-cta:hover {
    background-color: var(--yellow-highlight);
    border-bottom-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--cream);
    border: 2px solid var(--terracotta);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    margin-top: var(--spacing-md);
    width: 100%;
    max-width: 200px;
}

.language-switcher:hover {
    background-color: var(--yellow-primary);
    border-color: var(--yellow-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-code {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(var(--terracotta-rgb), 0.1) 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(var(--yellow-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--terracotta-rgb), 0.1) 0%, transparent 50%);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="texture" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23C85A3A" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23C85A3A" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23texture)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto var(--spacing-md);
    display: block;
    object-fit: contain;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.3;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--black);
    margin-bottom: var(--spacing-lg);
    opacity: 0.85;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--yellow-primary);
    color: var(--black);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--yellow-highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--terracotta);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: var(--red-pasta);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background-color: var(--terracotta);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background-color: var(--red-pasta);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Section Styles
   ============================================ */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--terracotta);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--black);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    opacity: 0.85;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================
   Menu Section
   ============================================ */
.menu-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--white);
}

.menu-intro {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--black);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
    opacity: 0.85;
}

.menu-categories-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.menu-category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--cream);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--terracotta);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.menu-category-link:hover {
    background-color: var(--yellow-primary);
    color: var(--black);
    border-color: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-categories {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.menu-category {
    scroll-margin-top: 100px;
}

.menu-category-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--terracotta);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    line-height: 1.3;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.menu-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--cream);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow-primary);
}

.menu-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(var(--terracotta-rgb), 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(var(--yellow-primary-rgb), 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover .menu-card-image::before {
    opacity: 1;
}

.menu-placeholder {
    font-size: 4rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.menu-card:hover .menu-placeholder {
    transform: scale(1.1);
    opacity: 0.9;
}

.menu-card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.menu-card-description {
    font-size: 1rem;
    color: var(--black);
    opacity: 0.8;
    line-height: 1.6;
}

.menu-card-price {
    font-family: var(--font-body);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-top: var(--spacing-sm);
    line-height: 1.3;
}

.menu-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ============================================
   Location Section
   ============================================ */
.location-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--cream);
}

.location-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--terracotta);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.info-item p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--black);
    line-height: 1.8;
    font-weight: 400;
}

.info-item strong {
    color: var(--terracotta);
    font-weight: 600;
}

.order-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.location-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cream) 0%, rgba(var(--terracotta-rgb), 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-link:hover .map-placeholder {
    background: linear-gradient(135deg, rgba(var(--yellow-primary-rgb), 0.2) 0%, rgba(var(--terracotta-rgb), 0.15) 100%);
    transform: scale(1.02);
}

.map-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: var(--spacing-xs);
}

.map-link-text {
    font-size: 1rem;
    color: var(--black);
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.map-link-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--yellow-primary);
    color: var(--black);
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.map-link:hover .map-link-btn {
    background-color: var(--yellow-highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: var(--spacing-sm);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--yellow-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.footer-social {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.social-link {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    color: var(--yellow-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ============================================
   Tablet Styles (768px and up)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-lg);
        padding: 0;
        box-shadow: none;
        background: transparent;
    }
    
    .nav.active {
        right: auto;
    }
    
    .nav-link-cta {
        margin-top: 0;
    }
    
    .language-switcher {
        margin-top: 0;
    }
    
    .logo {
        height: 70px;
    }
    
    .logo-image {
        max-height: 70px;
        max-width: 250px;
    }
    
    .footer-logo-image {
        height: 70px;
        max-width: 250px;
    }
    
    .hero-logo {
        max-width: 450px;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .order-buttons {
        flex-direction: row;
    }
    
    .menu-category-title {
        font-size: 2.25rem;
    }
    
    .menu-categories-links {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .location-info {
        flex: 1;
    }
    
    .location-map {
        flex: 1;
        height: 400px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Desktop Styles (1024px and up)
   ============================================ */
@media (min-width: 1024px) {
    .logo {
        height: 80px;
    }
    
    .logo-image {
        max-height: 80px;
        max-width: 300px;
    }
    
    .footer-logo-image {
        height: 80px;
        max-width: 300px;
    }
    
    .hero-logo {
        max-width: 550px;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .menu-category-title {
        font-size: 2.5rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .menu-card-image {
        height: 250px;
    }
}

/* ============================================
   Large Desktop Styles (1200px and up)
   ============================================ */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

