:root {
    --color-burdeos: #6a1b21;
    --color-rojo: #c73e3e;
    --color-verde: #8a9a78;
    --color-crema: #f3f0e7;
    --font-titulo: 'Bebas Neue', sans-serif;
    --font-cursiva: 'Dancing Script', cursive;
    --font-cuerpo: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-cuerpo);
    background-color: var(--color-crema);
    color: #333;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--color-crema);
    border-bottom: 4px solid var(--color-burdeos);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-title {
    font-family: var(--font-titulo);
    font-size: 5rem;
    color: var(--color-burdeos);
    line-height: 0.8;
}

.tagline {
    font-family: var(--font-cursiva);
    font-size: 1.8rem;
    color: var(--color-burdeos);
}

.category-title {
    font-family: var(--font-cursiva);
    color: var(--color-rojo);
    font-size: 3rem;
    text-align: center;
    margin: 2rem 0 1rem;
}

.category-note {
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.category-section {
    scroll-margin-top: 190px
}

.menu-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.dish-image-placeholder {
    height: 180px;
    background-color: #f0f0f0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ccc" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.item-content { padding: 1.2rem; }

.item-title {
    font-family: var(--font-titulo);
    font-size: 1.8rem;
    color: var(--color-burdeos);
}

.item-price {
    font-family: var(--font-titulo);
    font-size: 1.6rem;
    color: var(--color-rojo);
}

.doodle-placeholder {
    width: 50px;
    height: 50px;
    border: 2px dashed var(--color-rojo);
    border-radius: 50%;
    position: absolute;
    bottom: 60px;
    right: 15px;
    opacity: 0.5;
    z-index: 10;
}

.wave-separator {
    height: 25px;
    background-color: var(--color-verde);
    mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z'/%3E%3C/svg%3E");
    margin: 3rem 0;
}

/* Navegación móvil */
.nav-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-burdeos);
    cursor: pointer;
}

.nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 80%;
    background: var(--color-burdeos);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    z-index: 1001;
}

.nav-menu.active { right: 0; }

.nav-link {
    color: var(--color-crema);
    font-family: var(--font-titulo);
    font-size: 2.5rem;
    text-decoration: none;
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-toggle { display: none; }
    .nav-menu {
        position: static;
        height: auto;
        width: 100%;
        background: none;
        flex-direction: row;
    }
    .nav-link { color: var(--color-burdeos); font-size: 1.2rem; margin: 0 1rem; }
}


/* Sección de Historia */
.history-box {
    background-color: #fff; /* Fondo blanco para resaltar sobre el crema */
    padding: 3rem 1.5rem;
    margin-top: 0 !important; /* Reset del margen para pegar al separador */
}

.history-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.history-content p {
    margin-bottom: 1rem;
}

/* Botón Flotante de WhatsApp */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2000; /* Asegura que esté encima de todo */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatAppear 1s ease-out;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20b857;
}

.btn-whatsapp svg {
    width: 35px;
    height: 35px;
}

/* Animación de entrada suave para el botón */
@keyframes floatAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajuste para móviles pequeños: evita tapar contenido */
@media (max-width: 480px) {
    .btn-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .btn-whatsapp svg {
        width: 30px;
        height: 30px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}
.modal-overlay.active { display: flex; }

.modal-container {
    background: var(--color-crema);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 4px solid var(--color-burdeos);
    text-align: center;
    animation: modalSlide 0.5s ease;
}

@keyframes modalSlide {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-pizza-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-burdeos);
    cursor: pointer;
}

footer {
    padding: 3rem 5%;
    background-color: var(--color-crema);
    text-align: left;
    border-top: 5px solid var(--color-burdeos);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1200px;
}

.footer-brand .logo-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.footer-brand p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-brand a {
    color: var(--color-rojo);
    font-weight: 600;
    text-decoration: none;
}

.footer-hours h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: var(--color-burdeos);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.footer-hours .schedule-box {
    border-left: 3px solid var(--color-rojo);
    padding-left: 15px;
    margin-bottom: 0.5rem;
}

.footer-hours .days {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-texto);
}

.footer-hours .time {
    font-family: 'Montserrat', sans-serif;
    color: #555;
}

.footer-hours .closed-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
    margin-top: 5px;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}