﻿/* =========================================================
   LA WAFFLERIA — Hoja de estilos principal (refactor visual)
   ========================================================= */

:root {
    --color-primary: #00B1DA;
    --color-primary-strong: #0091B3;
    --color-secondary: #6F3C99;
    --color-product: #C68642;
    --color-accent: #FFD166;
    --color-bg: #F8F5F2;
    --color-bg-soft: #FFFFFF;
    --color-white: #ffffff;
    --color-text: #2B2B2B;
    --color-muted: #6B6B6B;
    --color-border: #E5E5E5;
    --color-surface: #FFFFFF;
    --font-heading: 'Fredoka', 'Trebuchet MS', sans-serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 12px 32px rgba(62, 36, 22, 0.08);
    --shadow-soft: 0 8px 24px rgba(62, 36, 22, 0.06);
    --transition: 0.28s ease;
    --max-width: 1180px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background:
        radial-gradient(circle at 10% -10%, rgba(0, 177, 218, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 100% 0%, rgba(111, 60, 153, 0.12) 0%, transparent 30%),
        var(--color-bg);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

main section {
    position: relative;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.8vw, 2.45rem);
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: 0.6rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted);
    margin: 0 auto 2.2rem;
    font-size: clamp(0.98rem, 1.8vw, 1.08rem);
    max-width: 680px;
}

.highlight {
    color: var(--color-primary-strong);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.78rem 1.5rem;
    font-size: 0.96rem;
    font-family: var(--font-body);
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    box-shadow: 0 10px 22px rgba(0, 177, 218, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--color-primary-strong), var(--color-secondary));
    box-shadow: 0 14px 26px rgba(0, 177, 218, 0.36);
}

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

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #5a2f7d;
    border-color: #5a2f7d;
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-secondary);
    padding: 0.54rem 1.05rem;
    font-size: 0.86rem;
}

.btn-outline:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1rem;
}

.btn-nav {
    background: var(--color-secondary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-secondary) !important;
    border-radius: 999px;
    padding: 0.55rem 1.1rem !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 177, 218, 0.96) !important;
    border-bottom: 1px solid rgba(0, 145, 179, 0.45) !important;
}

.navbar {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0.64rem 0.9rem;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text,
.logo-text-footer {
    font-family: var(--font-heading);
    letter-spacing: 0.4px;
}

.logo-text {
    font-size: 1.36rem;
    color: var(--color-white);
    justify-content: flex-start;
}

.logo-text:hover {
    color: var(--color-accent);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
    margin-right: 0.8rem;
    flex: 0 0 auto;
    overflow: visible;
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.2rem 1.25rem;
}

.nav-menu.open {
    display: flex;
}

.nav-link {
    font-weight: 700;
    color: var(--color-white);
    padding: 0.58rem 0.5rem;
    border-radius: 10px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.88);
}

.nav-link.active {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 1);
}

.nav-toggle {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 10px;
    background: var(--color-secondary);
}

.hero {
    position: relative;
    width: 100%;
    min-height: 76vh;
    max-height: 85vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.18));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 860px);
    text-align: center;
    background: rgba(248, 245, 242, 0.74);
    border: 1px solid rgba(236, 213, 191, 0.75);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius);
    padding: 1.7rem 1.25rem;
    backdrop-filter: blur(3px);
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-size: clamp(2rem, 6.2vw, 3.5rem);
    line-height: 1.12;
}

.hero-subtitle {
    color: var(--color-muted);
    margin-top: 0.95rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.72rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-message {
    padding: 2.7rem 1rem 2.2rem;
    background:
        radial-gradient(circle at 12% -10%, rgba(0, 177, 218, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 100% 0%, rgba(111, 60, 153, 0.08) 0%, transparent 36%),
        var(--color-bg);
}

.hero-message .hero-content {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 229, 229, 0.9);
    box-shadow:
        0 16px 34px rgba(0, 177, 218, 0.16),
        0 24px 42px rgba(111, 60, 153, 0.12),
        0 2px 0 rgba(255, 255, 255, 0.55) inset;
}

.hero-message .hero-title {
    letter-spacing: 0.2px;
}

.hero-message .hero-subtitle {
    color: #575757;
}

.features,
.featured-menu,
.reviews {
    padding: 4.4rem 1.2rem;
}

.features {
    background: var(--color-white);
}

.featured-menu {
    background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 100%);
}

.reviews {
    background: var(--color-white);
}

.features-grid,
.menu-preview-grid,
.reviews-grid,
.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(160deg, #ffffff 0%, #f8f5f2 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.8rem 1.2rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    margin-bottom: 0.9rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    color: var(--color-secondary);
    margin-bottom: 0.42rem;
}

.feature-card p {
    color: var(--color-muted);
}
.menu-preview-grid {
    display: flex;
    gap: 1.15rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0 0.9rem;
    margin-bottom: 2rem;
}

.menu-carousel {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
}

.menu-carousel .menu-preview-grid {
    max-width: none;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-carousel .menu-preview-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-secondary);
    font-size: 1.2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(62, 36, 22, 0.18);
    transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.04);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.carousel-arrow-prev {
    left: -12px;
}

.carousel-arrow-next {
    right: -12px;
}

.menu-card {
    flex: 0 0 min(86vw, 340px);
    scroll-snap-align: start;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.menu-card-img {
    position: relative;
    height: 200px;
    background: linear-gradient(140deg, #f7e3cb, #fff2df);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
}

.menu-card-img::after {
    content: 'Imagen de referencia';
    position: absolute;
    bottom: 0.6rem;
    right: 0.75rem;
    background: rgba(62, 36, 22, 0.72);
    color: var(--color-primary);
    font-size: 0.68rem;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.menu-emoji {
    position: absolute;
    top: 0.65rem;
    left: 0.7rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 12px rgba(62, 36, 22, 0.15);
    font-size: 1rem;
}

.menu-card-body {
    padding: 1.2rem;
}

.menu-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 0.35rem;
}

.menu-card-body p {
    color: var(--color-muted);
    margin-bottom: 0.9rem;
}

.price {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--color-product);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.cta-section {
    padding: 4rem 1.2rem;
    text-align: center;
    background: linear-gradient(135deg, #00B1DA, #6F3C99);
}

.cta-content h2 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.85rem auto 1.6rem;
    max-width: 60ch;
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-secondary);
}

.product-card .product-tag {
    display: inline-block;
    margin-bottom: 0.9rem;
}

.product-card .btn-primary {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .hero {
        min-height: 65vh;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .navbar {
        min-height: 76px;
        padding: 0 15px 0 24px;
    }

    .logo-link {
        margin-right: auto;
    }

    .nav-toggle {
        margin-left: 0.5rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.03rem;
    }

    .carousel-arrow-prev {
        left: 6px;
    }

    .carousel-arrow-next {
        right: 6px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .brand-logo-navbar {
        width: 168px;
        height: auto;
        max-height: none;
        flex: 0 0 auto;
        transform: none;
    }

    .nav-menu .nav-link {
        color: var(--color-text);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--color-secondary);
        background: rgba(111, 60, 153, 0.12);
    }

    .nav-menu .btn-nav {
        color: var(--color-white) !important;
        background: var(--color-secondary) !important;
        border-radius: 8px;
        padding: 0.42rem 0.8rem !important;
        margin-top: 0.4rem;
        align-self: flex-start;
    }

    .hero {
        min-height: 60vh;
        max-height: none;
        padding: 1.4rem 0.95rem;
    }

    .hero-message {
        padding: 1.5rem 0.95rem 1.5rem;
    }

    .features,
    .featured-menu,
    .reviews,
    .cta-section,
    .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) {
    .navbar {
        min-height: 76px;
        padding: 0 24px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        align-items: center;
        gap: 0.18rem;
        margin-left: auto;
        margin-right: clamp(0rem, 4vw, 3.2rem);
    }

    .hero { min-height: 70vh; }

    .hero-content { padding: 2rem 1.8rem; }

    .hero-message {
        padding: 2.35rem 1.4rem 2rem;
    }

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

    .menu-card {
        flex: 0 0 min(46vw, 360px);
    }

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

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

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }

    .hero-content {
        padding: 1.25rem 0.95rem;
    }

    .brand-logo-navbar {
        width: 152px;
    }

    .nav-menu {
        padding: 0.85rem 0.9rem 1rem;
    }

    .menu-card {
        flex: 0 0 min(90vw, 320px);
    }

    .menu-card-img {
        height: 184px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
    }

    .hero-subtitle {
        font-size: 0.97rem;
    }
}

@media (max-width: 375px) {
    .hero {
        min-height: 58vh;
    }

    .brand-logo-navbar {
        width: 140px;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .menu-card {
        flex: 0 0 min(92vw, 300px);
    }

    .menu-card-img {
        height: 172px;
    }
}

@media (min-width: 1024px) {
    .navbar,
    .hero,
    .features-grid,
    .menu-preview-grid,
    .reviews-grid,
    .footer-grid {
        padding-left: 0;
        padding-right: 0;
    }

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

    .menu-card {
        flex: 0 0 min(31vw, 350px);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer social hover por marca */
.footer-social a i {
    font-size: 1.2rem;
    transition: color var(--transition);
}

.footer-social a:hover .fa-instagram {
    color: #E1306C;
}

.footer-social a:hover .fa-facebook {
    color: #1877F2;
}

.footer-social a:hover .fa-whatsapp {
    color: #25D366;
}

/* Marca con logo real */
.logo-text,
.logo-text-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
}

.brand-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: inline-block;
}

.brand-logo-navbar {
    width: 176px;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
    display: block;
    transform: none;
}

.brand-logo-footer {
    width: 154px;
    height: 154px;
}

.footer-brand .logo-text-footer {
    width: 100%;
    justify-content: center;
}

.footer-brand {
    text-align: center;
}


/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: linear-gradient(150deg, #4E2C6F 0%, var(--color-secondary) 100%);
    color: rgba(255, 248, 240, 0.92);
    padding: 3rem 1.2rem 1.2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-brand p {
    color: rgba(255, 248, 240, 0.78);
    margin-top: 0.65rem;
}

.footer-nav h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.03rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.55rem;
}

.footer-nav ul {
    list-style: none;
    display: grid;
    gap: 0.38rem;
}

.footer-nav a,
.footer-contact a,
.footer-social a {
    color: rgba(255, 248, 240, 0.84);
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-social a:hover {
    color: var(--color-primary);
}

.footer-contact address {
    font-style: normal;
    color: rgba(255, 248, 240, 0.84);
    line-height: 1.6;
}

.footer-social {
    display: grid;
    align-content: start;
    gap: 0.22rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 0;
    line-height: 1.2;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 1.2rem auto 0;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 248, 240, 0.7);
    font-size: 0.9rem;
}

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

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }
}




.footer-social h3 {
    margin-bottom: 0.2rem;
}

/* Ajustes finales de navbar por breakpoint (se declaran al final para evitar colisiones) */
@media (max-width: 767px) {
    .brand-logo-navbar {
        width: 168px;
    }
}

@media (max-width: 480px) {
    .brand-logo-navbar {
        width: 152px;
    }
}

@media (max-width: 375px) {
    .brand-logo-navbar {
        width: 140px;
    }
}

