/* CSS Custom Properties */
:root {
    --terracotta: #8B3A1A;
    --terracotta-dark: #6d2d14;
    --terracotta-light: #a54d2a;
    --warm-cream: #F5ECD7;
    --dark-brown: #3D1F0D;
    --olive-green: #4A6741;
    --accent-gold: #C8872A;
    --accent-gold-dark: #b87a25;
    --white: #ffffff;
    --shadow: rgba(61, 31, 13, 0.12);
    --shadow-strong: rgba(61, 31, 13, 0.22);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--warm-cream);
    color: var(--dark-brown);
    line-height: 1.5;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: soft-light;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* Urgency Bar */
.urgency-bar {
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    color: var(--warm-cream);
    text-align: center;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Decorative Divider */
.divider {
    height: 1px;
    background: rgba(139, 58, 26, 0.15);
    margin: 0 1rem;
}

/* Header */
.header {
    background: var(--warm-cream);
    padding: 0.5rem 0;
    position: sticky;
    top: 1.5rem;
    z-index: 999;
    box-shadow: 0 2px 8px var(--shadow);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--terracotta);
}

.nav {
    display: none;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--dark-brown);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.nav a:hover {
    color: var(--terracotta);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: var(--terracotta);
    color: var(--warm-cream);
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.btn-secondary:hover {
    background: var(--terracotta);
    color: var(--warm-cream);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    background: linear-gradient(180deg, var(--warm-cream) 0%, rgba(245, 236, 215, 0.85) 100%);
    position: relative;
}

.hero-logo {
    max-width: 180px;
    margin: 0 auto 1rem;
    display: block;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--terracotta);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--olive-green);
    font-weight: 600;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.promo-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.promo-badge {
    display: inline-block;
    background: var(--terracotta);
    color: var(--warm-cream);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 16px rgba(139, 58, 26, 0.35);
}

.promo-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--dark-brown);
    margin-bottom: 0.35rem;
}

.promo-text {
    font-size: 1rem;
    color: var(--dark-brown);
    max-width: 500px;
    margin: 0 auto 0.75rem;
    opacity: 0.92;
}

.countdown-item small {
    font-size: 0.7rem;
    opacity: 0.9;
}

.pulse {
    animation: pulseScale 2s ease-in-out infinite;
}

@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* How Section */
.how-section {
    padding: 1.5rem 0;
    background: var(--warm-cream);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--dark-brown);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--terracotta);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.how-card {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all var(--transition-medium);
}

.how-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-strong);
}

.how-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: var(--terracotta);
    color: var(--warm-cream);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.how-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.how-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-brown);
}

.how-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Menu Section */
.menu-section {
    padding: 1.5rem 0;
    background: var(--warm-cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.chilaquiles-grid {
    max-width: 700px;
    margin: 0 auto;
}

.menu-card {
    background: var(--white);
    border-radius: 10px;
    padding: 0.9rem;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all var(--transition-medium);
    cursor: pointer;
    border: 1px solid rgba(139, 58, 26, 0.08);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-strong);
}

.card-title {
    font-size: 1.05rem;
    color: var(--dark-brown);
    margin-bottom: 0.35rem;
}

.card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.card-price {
    display: inline-block;
    background: var(--terracotta);
    color: var(--warm-cream);
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Why Section */
.why-section {
    padding: 1.5rem 0;
    background: linear-gradient(180deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    color: var(--warm-cream);
}

.why-section .section-title {
    color: var(--warm-cream);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.why-card {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.why-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--warm-cream);
}

.why-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 1.5rem 0;
    background: var(--warm-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.hours-card, .info-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px var(--shadow);
}

.hours-card h3, .info-card h3 {
    font-size: 1.15rem;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
    text-align: center;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 58, 26, 0.1);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-label {
    font-weight: 600;
    color: var(--dark-brown);
}

.hours-time {
    color: var(--terracotta);
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-item a {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 700;
}

.info-item a:hover {
    text-decoration: underline;
}

.info-icon {
    font-size: 1rem;
}

.map-link {
    display: inline-block;
    color: var(--terracotta);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0.5rem 0;
}

.map-link:hover {
    text-decoration: underline;
}

.btn-contact {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--dark-brown);
    color: var(--warm-cream);
    padding: 1.25rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.85rem;
    opacity: 0.85;
}

.footer-copy {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.15rem;
}

/* Animation Classes */
.fade-element {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero specific animation delays */
.hero-logo { transition-delay: 0s; }
.hero-title { transition-delay: 0.12s; }
.hero-subtitle { transition-delay: 0.24s; }
.hero-buttons { transition-delay: 0.36s; }
.hero-trust { transition-delay: 0.48s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-element {
        opacity: 1;
        transform: none;
    }

    .pulse {
        animation: none;
    }
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-grid, .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chilaquiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero-logo {
        max-width: 200px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .chilaquiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-section, .why-section, .contact-section, .menu-section {
        padding: 2rem 0;
    }

    .promo-banner {
        padding: 2rem 0;
    }
}

/* Precios Grid */
.precios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.precio-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 12px var(--shadow);
    border-left: 4px solid var(--terracotta);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.precio-card--gold {
    border-left-color: var(--accent-gold);
}

.precio-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--terracotta);
    white-space: nowrap;
}

.precio-card--gold .precio-amount {
    color: var(--accent-gold-dark);
}

.precio-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Día Section */
.dia-section {
    margin-bottom: 1.5rem;
}

.dia-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--terracotta);
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid rgba(139, 58, 26, 0.2);
}

/* Guarniciones Box */
.guarniciones-box {
    margin-top: 0.85rem;
    background: rgba(74, 103, 65, 0.08);
    border-left: 3px solid var(--olive-green);
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: var(--dark-brown);
    line-height: 1.5;
}

.guarniciones-box strong {
    color: var(--olive-green);
}

@media (min-width: 768px) {
    .precios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
