/* styles.css */
:root {
    --primary: #FF8BA7; /* Pastel Rosa Mexicano */
    --primary-light: #FFC6D3;
    --primary-dark: #E05C80;
    --secondary: #81D4FA; /* Pastel Blue */
    --accent: #FFCB77; /* Pastel Yellow/Gold */
    --bg-color: #FFF9F5; /* Warm off-white */
    --surface: #FFFFFF;
    --text-primary: #5A3A31; /* Brownish warm black */
    --text-secondary: #7B5F55;
    --border-color: #F8D7DA;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 35px rgba(255, 139, 167, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(rgba(248, 215, 218, 0.5) 2px, transparent 2px),
        radial-gradient(rgba(255, 198, 211, 0.4) 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar for pastel touch */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.brand-logo {
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
}

.btn-primary, .btn-large {
    background: linear-gradient(135deg, #FFB74D, #E65100); /* Cempasuchil orange */
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover, .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 139, 167, 0.35), rgba(129, 212, 250, 0.35)), url('assets/Hero.jpg') center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: white;
    position: relative;
}

/* Decorative top and bottom border for folclor look */
.hero::before {
    content: "🌺 💀 🌼 🌸 💀 🌺 🌼 🌸 💀";
    position: absolute;
    top: 50px;
    font-size: 2rem;
    letter-spacing: 15px;
    opacity: 0.9;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.hero::after {
    content: "🌸 💀 🌺 🌼 🌸 💀 🌺 🌼 💀";
    position: absolute;
    bottom: 50px;
    font-size: 2rem;
    letter-spacing: 15px;
    opacity: 0.9;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background: rgba(255,255,255,0.05);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.jarocha-hero-img {
    max-width: 250px;
    height: auto;
    border-radius: 20px;
    border: 5px solid white;
    box-shadow: var(--shadow-hover);
    margin-bottom: 20px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    letter-spacing: 2px;
}

.nostalgia-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.nostalgia-text {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    margin-top: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.8rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.section-title::before {
    content: "💀 ";
    font-size: 2.2rem;
}

.section-title::after {
    content: "";
    display: inline-block;
    background-image: url('assets/senpai.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 45px;
    height: 45px;
    vertical-align: middle;
    margin-left: 15px;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Menu Grid */
.menu-section {
    background: linear-gradient(135deg, #4A148C, #FF6D00);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 3rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 139, 167, 0.1), rgba(129, 212, 250, 0.1));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.menu-card::after {
    content: '';
    background-image: url('assets/senpai.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 80px;  /* Size adjusted for the flower image */
    height: 80px;
    opacity: 0.3;
    pointer-events: none;
    transform: rotate(25deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-card:hover::after {
    opacity: 0.6;
    transform: rotate(0deg) scale(1.15);
}

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

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

.card-content {
    position: relative; /* Above backgrounds */
    z-index: 1;
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* Gallery inside Cards */
.card-gallery {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.card-gallery::-webkit-scrollbar {
    height: 6px;
}

.card-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.25s, border 0.25s;
    border: 2px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.gallery-thumb:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 5px 12px rgba(211, 47, 47, 0.3);
}

/* Card details */
.feature {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.card-details {
    list-style: none;
    color: var(--text-secondary);
}

.card-details li {
    padding: 0.3rem 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.card-details li:last-child {
    border-bottom: none;
}

.sub-text {
    font-size: 0.85rem !important;
    color: #8d6e63 !important;
    font-style: italic;
    padding-top: 0 !important;
}

/* Info Section (Horarios & Envío) */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.schedule-card, .delivery-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.schedule-card.highlighted-card {
    border: 2px solid var(--primary); /* destacada */
    background: floralwhite; /* cálido */
}

.schedule-card:hover, .delivery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-wrapper {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.info-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: 0.5rem;
}

.whatsapp-link {
    font-size: 1.4rem;
    font-weight: 700;
    color: #25D366;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    transition: var(--transition);
}

.whatsapp-link:hover {
    color: #128C7E;
    transform: scale(1.05);
}


/* Modal for Image Expansion */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* fallback */
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
    border: 4px solid white;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}


/* FAB WhatsApp */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* or var(--primary) based on preference */
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.fab-whatsapp:hover {
    transform: scale(1.1) rotate(-5deg);
    background-color: #1EBE5D;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.mb-4 {
    margin-bottom: 2rem !important;
}
.mt-3 {
    margin-top: 1.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nostalgia-text {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .fab-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}
