/* demo-pizzeria.css - L'Antico Forno (Boutique Italiana) */

:root {
    --bg-color: #fdfdfc; /* Blanco mármol muy puro */
    --text-color: #1a1a1a; /* Carbón profundo */
    --brand-green: #2c5f2d; /* Verde Albahaca Oscuro */
    --brand-red: #9e2a2b; /* Rojo Tomate Tostado / Vino italiano */
    --accent-gold: #c5a880; /* Dorado sutil para acentos */

    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Lato', sans-serif;

    --agency-bar-height: 56px;
}

/* Reset Global */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Contenedores y Tipografía Básica */
.container { max-width: 1200px; margin: 0 auto; padding: 0 4vw; }
h1, h2, h3, h4, .main-title, .logo, .section-title {
    font-family: var(--heading-font);
    font-weight: 500;
    line-height: 1.1;
}

/* Modificadores de Sección y Kickers */
.section-kicker {
    display: block; font-family: var(--body-font); font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.25em; color: var(--brand-red); margin-bottom: 1.5rem; font-weight: 700;
}
.section-title { font-size: 3.5rem; color: var(--text-color); margin-bottom: 2rem; }
.ornament-divider {
    width: 60px; height: 1px; background-color: var(--accent-gold); margin: 0 auto 3rem; position: relative;
}
.ornament-divider::after {
    content: '♦'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    color: var(--accent-gold); font-size: 0.8rem; background: var(--bg-color); padding: 0 10px;
}

/* Botones Elegantes */
.btn-primary-solid {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--body-font); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
    padding: 1.2rem 3rem; background-color: var(--brand-red); color: #fff; border: 1px solid var(--brand-red);
    cursor: pointer; transition: all 0.4s ease; text-decoration: none;
}
.btn-primary-solid:hover { background-color: transparent; color: var(--brand-red); }

.nav-btn-outline {
    font-family: var(--body-font); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 0.8rem 2rem; background-color: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer; transition: all 0.4s ease;
}
.nav-btn-outline:hover { background-color: #fff; color: var(--text-color); border-color: #fff; }

.mt-4 { margin-top: 3rem; }
.mb-form { margin-bottom: 1rem; }

/* B2B Agency Bar */
.agency-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--agency-bar-height);
    background: #111; color: #fff; display: flex; align-items: center; justify-content: space-between;
    padding: 0 4vw; z-index: 2000; font-family: sans-serif; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.agency-left { display: flex; align-items: center; gap: 1rem; }
.agency-badge { background: transparent; color: #fff; padding: 3px 8px; border: 1px solid #fff; font-weight: 700; letter-spacing: 1px; }
.agency-actions { display: flex; gap: 1rem; align-items: center; }
.agency-link { color: #999; text-decoration: none; transition: color 0.3s; }
.agency-link:hover { color: #fff; }
.agency-cta { background: #fff; color: #111; padding: 6px 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 800px) { .agency-bar { flex-wrap: wrap; height: auto; padding: 10px 4vw; justify-content: center; gap: 10px; } }

/* Floating Transparent Navigation */
.nav-transparent {
    position: fixed; top: var(--agency-bar-height); left: 0; width: 100%; height: 90px; z-index: 1000;
    display: flex; align-items: center; transition: all 0.5s ease; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-transparent.scrolled {
    background: rgba(26, 26, 26, 0.95); backdrop-filter: blur(10px); height: 75px; border-bottom-color: transparent;
}
.nav-container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 4vw; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; color: #fff; text-decoration: none; letter-spacing: 0.05em; font-weight: 600; }
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { color: #fff; font-family: var(--body-font); font-size: 0.8rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.2em; text-decoration: none; transition: opacity 0.3s; opacity: 0.8; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 900px) { .nav-links, .nav-btn-outline { display: none; } }

/* Hero Cinemático Parallax */
.hero-cinematic {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-parallax {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}
.parallax-bg {
    width: 100%; height: 120%; object-fit: cover; object-position: center;
    transform: translateY(-10%); animation: slow-pan 30s linear infinite alternate;
}
.hero-overlay-dark {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: -1;
}
@keyframes slow-pan {
    0% { transform: translateY(-10%) scale(1.05); } 100% { transform: translateY(0) scale(1.05); }
}
.hero-content {
    text-align: center; color: #fff; padding: 0 4vw; max-width: 900px; margin-top: 5rem;
}
.subtitle-italic {
    display: block; font-family: var(--heading-font); font-style: italic; font-size: 2rem; color: var(--accent-gold); margin-bottom: -1rem;
}
.main-title { font-size: clamp(4.5rem, 8vw, 7.5rem); line-height: 0.95; margin-bottom: 2rem; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.25rem; font-weight: 300; letter-spacing: 0.05em; opacity: 0.9; margin-bottom: 3rem; line-height: 1.8; }

/* El Proceso Artesanal (3 Pasos) */
.artisan-process { padding: 10rem 0; background: var(--bg-color); }
.text-center { text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; margin-top: 5rem; }
.process-card { text-align: center; }
.img-circle {
    width: 250px; height: 350px; margin: 0 auto 3rem; overflow: hidden; border-radius: 200px 200px 0 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); position: relative;
    border: 1px solid rgba(0,0,0,0.05); padding: 5px; background: #fff;
}
.img-circle img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 195px 195px 0 0; transition: transform 0.8s ease;
}
.process-card:hover .img-circle img { transform: scale(1.08); }
.process-card h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--brand-green); }
.process-card p { font-size: 1rem; color: #555; line-height: 1.8; font-weight: 300; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; gap: 6rem; } .img-circle { height: 300px; width: 220px; } }

/* Interactive Menu Tabs */
.interactive-menu { padding: 8rem 0 12rem; background: #f9f7f3; border-top: 1px solid rgba(0,0,0,0.05); }
.menu-intro { max-width: 600px; margin: 0 auto 3rem; font-size: 1.1rem; color: #555; font-style: italic; font-family: var(--heading-font); }
.tab-controls {
    display: flex; justify-content: center; gap: 2rem; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 1rem; flex-wrap: wrap; max-width: 900px; margin: 0 auto 4rem;
}
.tab-btn {
    background: none; border: none; font-family: var(--body-font); font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em; color: #888; cursor: pointer; padding: 0.5rem 1rem;
    position: relative; transition: color 0.3s;
}
.tab-btn::after {
    content: ''; position: absolute; bottom: -17px; left: 0; width: 100%; height: 2px;
    background: var(--brand-red); transform: scaleX(0); transition: transform 0.3s ease;
}
.tab-btn:hover { color: var(--text-color); }
.tab-btn.active { color: var(--brand-red); }
.tab-btn.active::after { transform: scaleX(1); }

/* Menu Grid Logic */
.menu-wrapper { position: relative; min-height: 500px; }
.tab-content { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transition: all 0.5s ease; transform: translateY(20px); }
.tab-content.active { position: relative; opacity: 1; visibility: visible; transform: translateY(0); }
.menu-items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 6rem; max-width: 1100px; margin: 0 auto; }
@media (max-width: 800px) { .menu-items-grid { grid-template-columns: 1fr; gap: 3rem; } .tab-btn { font-size: 0.8rem; padding: 0.5rem; } }

/* Pizza Items */
.p-item { margin-bottom: 1rem; }
.p-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8rem; }
.p-name { font-family: var(--heading-font); font-size: 1.6rem; font-weight: 600; color: var(--text-color); }
.p-dots { flex-grow: 1; border-bottom: 1px dotted rgba(0,0,0,0.2); margin: 0 1.5rem; position: relative; top: -6px; }
.p-price { font-family: var(--body-font); font-weight: 700; font-size: 1.15rem; color: var(--brand-red); }
.p-desc { font-size: 0.95rem; color: #666; font-weight: 300; line-height: 1.8; }
.p-highlight { padding: 2rem; background: #fff; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.02); border-left: 3px solid var(--brand-red); }

/* Booking Split Screen Embedded */
.booking-split { display: grid; grid-template-columns: 50% 50%; min-height: 800px; }
.b-image-pane { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.parallax-bg-slow { width: 100%; height: 120%; object-fit: cover; animation: slow-pan-up 40s linear infinite alternate; position: absolute; top: 0; left: 0; z-index: -1; }
@keyframes slow-pan-up { 0% { transform: translateY(0); } 100% { transform: translateY(-15%); } }
.pane-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7)); }
.pane-text { position: relative; z-index: 2; color: #fff; text-align: center; padding: 4rem; max-width: 500px; }
.pane-text h3 { font-size: 4.5rem; margin-bottom: 1.5rem; font-style: italic; color: var(--accent-gold); }
.pane-text p { font-size: 1.2rem; font-weight: 300; opacity: 0.9; }

.b-form-pane { background: var(--bg-color); display: flex; align-items: center; justify-content: center; padding: 6rem 4vw; }
.form-container { max-width: 550px; width: 100%; }
.form-instructions { font-size: 0.95rem; color: #666; margin-bottom: 3rem; line-height: 1.8; }
.input-row { display: flex; gap: 2rem; margin-bottom: 2rem; }
.input-group { flex: 1; }
.input-group label { display: block; font-family: var(--body-font); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-green); margin-bottom: 0.8rem; }
.input-group input, .input-group select { width: 100%; padding: 1.2rem 0; border: none; border-bottom: 1px solid rgba(0,0,0,0.2); background: transparent; font-family: var(--heading-font); font-size: 1.3rem; color: var(--text-color); transition: border-color 0.3s; }
.input-group input:focus, .input-group select:focus { outline: none; border-bottom-color: var(--brand-red); }
.btn-full { width: 100%; margin-top: 1rem; background: var(--brand-green); border-color: var(--brand-green); }
.btn-full:hover { color: var(--brand-green); }
.anti-no-show { font-size: 0.8rem; color: #888; text-align: center; margin-top: 1.5rem; font-style: italic; }

@media (max-width: 1024px) {
    .booking-split { grid-template-columns: 1fr; }
    .b-image-pane { height: 500px; padding: 3rem; }
    .input-row { flex-direction: column; gap: 1rem; }
}

/* Elegant Minimal Footer */
.elegant-footer { background: #1a1a1a; color: #fff; padding: 0 0 2rem; position: relative; }
.italian-flag-line { height: 4px; background: linear-gradient(to right, #009246 33.33%, #ffffff 33.33%, #ffffff 66.66%, #ce2b37 66.66%); }
.footer-content { padding: 6rem 4vw 4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4rem; }
.f-brand { max-width: 300px; }
.logo-footer { font-size: 2rem; margin-bottom: 1rem; letter-spacing: 0.05em; }
.f-brand p { color: #999; font-style: italic; font-family: var(--heading-font); font-size: 1.2rem; }

.f-info { display: flex; gap: 4rem; flex-wrap: wrap; }
.f-column h4 { font-family: var(--body-font); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent-gold); margin-bottom: 1.5rem; font-weight: 700; }
.f-column p { color: #ccc; line-height: 2; font-weight: 300; font-size: 0.95rem; }
.social-links { display: flex; flex-direction: column; gap: 1rem; }
.social-links a { color: #ccc; text-decoration: none; font-size: 0.95rem; font-weight: 300; transition: color 0.3s; }
.social-links a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.8rem; color: #666; font-weight: 300; flex-wrap: wrap; gap: 1rem; }

/* Observers Reusability */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
