:root {
    --karu-green: #0E3D2E;
    --karu-gold: #D8A94B;
    --karu-cream: #FDFBF8;
    --text-dark: #1f1f1f;
    --text-muted: #5f5f5f;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--karu-cream);
}

.navbar {
    padding: 1rem 0;
    background-color: rgba(253, 251, 248, 0.5) !important;
    backdrop-filter: blur(12px);
}

.navbar .navbar-brand {
    color: var(--karu-green);
}

.brand-logo {
    width: 44px;
    height: auto;
}

.footer-logo {
    width: 150px;
    height: auto;
}

.navbar .nav-link {
    color: var(--text-dark);
    font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--karu-gold);
}

.btn-primary {
    background-color: var(--karu-green);
    border-color: var(--karu-green);
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--karu-gold);
    border-color: var(--karu-gold);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(14, 61, 46, 0.2);
}

.btn-outline-secondary {
    border-radius: 999px;
}

.btn-secondary {
    background-color: var(--karu-gold);
    border-color: var(--karu-gold);
    color: var(--karu-green);
    border-radius: 999px;
    font-weight: 600;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #bf8e35;
    border-color: #bf8e35;
    color: #fff;
}

.btn-outline-primary,
.btn-outline-light,
.btn-light,
.btn-outline-secondary {
    border-radius: 999px;
    font-weight: 600;
}

.btn-outline-primary {
    border-color: var(--karu-green);
    color: var(--karu-green);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--karu-gold);
    border-color: var(--karu-gold);
    color: var(--karu-green);
}

.btn-light {
    color: var(--karu-green);
    border-radius: 999px;
}

.hero-section {
    min-height: 90vh;
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background-color: var(--karu-green);
}

.hero-section::after {
    content: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 61, 46, 0.92) 0%, rgba(14, 61, 46, 0.78) 45%, rgba(14, 61, 46, 0.35) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

@keyframes heroRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-section .display-4 {
    line-height: 1.2;
}

.hero-section .pricing-highlight .price-card {
    background: rgba(253, 251, 248, 0.9);
    color: var(--karu-green);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    min-width: 180px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hero-section .price-card.savings {
    border: 2px solid var(--karu-gold);
}

.hero-section .price-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-section .price-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.hero-section .price-savings {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 2px solid var(--karu-gold);
    color: var(--karu-gold);
    background-color: rgba(216, 169, 75, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-subtext {
    color: rgba(253, 251, 248, 0.82);
}

.hero-badges .badge {
    background-color: rgba(253, 251, 248, 0.18);
    color: #0E3D2E;
    border: 1px solid rgba(253, 251, 248, 0.35);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.9rem;
}

.hero-meta {
    color: rgba(253, 251, 248, 0.75);
}

.hero-kicker {
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: var(--karu-green);
}

.hero-offer {
    background: rgba(14, 61, 46, 0.75);
    border: 1px solid rgba(253, 251, 248, 0.22);
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 25px 45px rgba(14, 61, 46, 0.35);
}

.hero-offer-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(253, 251, 248, 0.65);
}

.hero-offer-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
}

.hero-offer-note {
    color: rgba(253, 251, 248, 0.78);
    font-size: 0.95rem;
}

.section-spacing {
    padding: 5rem 0;
}

#menu {
    position: relative;
    overflow: hidden;
}

#menu::before {
    content: none;
}

#menu .container {
    position: relative;
    z-index: 1;
}

main {
    position: relative;
    z-index: 0;
}

main::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 90vh; /* inicia al final del header/hero en desktop */
    bottom: 0; /* llega hasta el comienzo del footer */
    background-image: url('backgroundinfinito.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover; /* ocupa toda el área hasta el footer */
    opacity: 0.10; /* 10% */
    z-index: -1; /* detrás de todo el contenido */
    pointer-events: none;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--karu-green);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Tipografías específicas para la sección de Boxes (menú) */
#menu .section-title {
    font-family: 'Playwrite Magyarorszag', 'Playwrite Magyarország', cursive;
    font-weight: 600;
}

#menu .menu-card .card-title {
    font-family: 'Indie Flower', cursive;
    font-weight: 600;
}

#menu .section-subtitle,
#menu .section-note,
#menu .menu-card .card-text {
    font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.menu-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(14, 61, 46, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(14, 61, 46, 0.2);
}

.menu-card .card-title {
    color: var(--karu-green);
    font-weight: 600;
}

.menu-card img {
    height: 220px;
    object-fit: cover;
}

.dish-img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    height: 260px;
}

.promo-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 45px rgba(14, 61, 46, 0.12);
    border: 1px solid rgba(14, 61, 46, 0.08);
}

.promo-card.highlight {
    border: 2px solid var(--karu-gold);
    position: relative;
}

.promo-card-floating {
    background: var(--karu-green);
    color: var(--karu-cream);
    border: 1px solid var(--karu-gold);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 25px rgba(14, 61, 46, 0.25);
}

.promo-card h3 {
    font-weight: 700;
    color: var(--karu-green);
}

.price-display {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--karu-green);
    margin: 1rem 0;
}

.savings-pill {
    display: inline-block;
    background-color: rgba(216, 169, 75, 0.2);
    color: var(--karu-green);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.promo-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.promo-list li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.promo-list li::before {
    content: '\f26e';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--karu-gold);
}

.step-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(14, 61, 46, 0.1);
    height: 100%;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(14, 61, 46, 0.12);
    color: var(--karu-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.testimonial {
    background: #fff;
    padding: 2.5rem;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(14, 61, 46, 0.1);
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    color: var(--text-dark);
}

.testimonial footer {
    margin-top: 1.5rem;
    font-style: normal;
    font-weight: 600;
    color: var(--karu-green);
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.badge {
    background-color: rgba(14, 61, 46, 0.1);
    color: var(--karu-green);
    font-weight: 500;
    padding: 0.6rem 1rem;
}

.small-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    max-width: 260px;
}

.promo-float .btn {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.category-card {
    border: none;
    border-radius: 22px;
    padding: 2.5rem 2rem;
    box-shadow: 0 18px 40px rgba(14, 61, 46, 0.12);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-icon {
    font-size: 2.5rem;
}

.category-badge {
    background-color: rgba(14, 61, 46, 0.12);
    color: var(--karu-green);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.category-badge-warning {
    background-color: rgba(216, 169, 75, 0.2);
    color: var(--karu-green);
}

.config-carousel {
    position: relative;
}

.config-swiper {
    width: 100%;
    padding: 0.75rem 0;
    cursor: grab;
}

.config-swiper .swiper-wrapper {
    align-items: stretch;
}

.config-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.config-swiper .swiper-slide.is-center {
    transform: scale(1.12);
    z-index: 4;
}

.config-swiper:active {
    cursor: grabbing;
}

.config-plate {
    position: relative;
    flex: 0 0 200px;
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    color: var(--text-dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.7; /* no centrados más tenues */
}

.config-plate:focus-visible {
    outline: 3px solid rgba(216, 169, 75, 0.65);
    outline-offset: 6px;
}

.config-plate-inner {
    background: rgba(253, 251, 248, 0.85);
    border-radius: 28px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    box-shadow: none; /* sin sombra para igualar el fondo del modal */
    backdrop-filter: blur(6px);
}

/* quitar sombreado gris en no centrados */
.config-plate-inner::after { content: none; }

.config-plate img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    box-shadow: 0 12px 24px rgba(14, 61, 46, 0.15);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.config-plate:hover img {
    transform: scale(1.03);
}

.config-plate.is-center img {
    box-shadow: 0 24px 50px rgba(14, 61, 46, 0.35);
}

.config-plate.is-center {
    z-index: 3;
    opacity: 1; /* centrado 100% opaco */
}

.config-plate-label strong {
    display: block;
    color: var(--karu-green);
    font-weight: 600;
}

.config-plate-label small {
    color: var(--text-muted);
}

.config-plate-indicator {
    position: absolute;
    top: 16px;
    right: 26px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--karu-gold);
    color: var(--karu-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(216, 169, 75, 0.35);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.config-plate.active img {
    border-color: var(--karu-gold);
    box-shadow: 0 20px 45px rgba(216, 169, 75, 0.4);
}

.config-plate.active .config-plate-indicator {
    transform: scale(1);
}

.config-plate.is-maxed .config-plate-inner {
    opacity: 0.55;
}

.config-plate.is-maxed:hover img {
    transform: none;
}

.config-plate.limit-shake img {
    animation: configPlateShake 0.3s ease;
}

@keyframes configPlateShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    50% {
        transform: translateX(4px);
    }
    75% {
        transform: translateX(-3px);
    }
}

.config-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(253, 251, 248, 0.85);
    border: 1px solid rgba(14, 61, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--karu-green);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.config-nav:hover {
    background-color: var(--karu-gold);
    color: var(--karu-green);
    transform: translateY(-1px);
}

.config-carousel .bi {
    font-size: 1.1rem;
}

.config-summary {
    background: rgba(253, 251, 248, 0.95) !important;
}

.order-toast {
    position: fixed;
    bottom: 6.5rem;
    right: 1.25rem;
    z-index: 1090;
    min-width: 260px;
    border-radius: 16px;
    background-color: var(--karu-green) !important;
    color: var(--karu-cream);
    box-shadow: 0 15px 35px rgba(14, 61, 46, 0.35);
}

.order-toast .btn {
    border-radius: 999px;
}

.footer {
    background-color: #091f17;
}

.footer-link {
    color: #f0ebe2;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--karu-gold);
}

.contact-list li {
    margin-bottom: 0.6rem;
    color: #f0ebe2;
}

.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 1050;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

.floating-whatsapp:hover {
    color: #fff;
    background-color: #1ebc57;
}

.whatsapp-inline {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.5rem;
    background-color: rgba(253, 251, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1040;
}

.floating-whatsapp-mobile {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 1060;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
}

.floating-whatsapp-mobile:hover {
    color: #fff;
    background-color: #1ebc57;
}

#cartModal .modal-content {
    border-radius: 20px;
    border: none;
}

#cartModal .modal-header {
    border-bottom: 0;
}

#cartModal .modal-footer {
    border-top: 0;
}

#cartItems .list-group-item {
    border: none;
    border-radius: 14px;
    background-color: rgba(14, 61, 46, 0.05);
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .floating-whatsapp {
        bottom: 5.2rem;
    }

    .order-toast {
        bottom: 8rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 5rem 1.5rem;
        text-align: center;
    }

    .hero-section .pricing-highlight {
        gap: 1rem;
    }

    .hero-badges .badge {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

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

    .badge-group {
        justify-content: center;
    }

    .small-float {
        right: 0.75rem;
        bottom: 5.5rem;
    }

    .config-plate {
        flex: 0 0 180px;
    }

    .config-plate img {
        width: 140px;
        height: 140px;
    }
}

