:root {
    --primary: #c59d5f;
    --primary-hover: #e0b97d;
    --dark: #0d0d0d;
    --dark-soft: #1a1a1a;
    --light: #f2f2f2;
    --gray: #a0a0a0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navegación --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(197, 157, 95, 0.2);
}

.logo {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

nav div a {
    color: var(--light);
    margin-left: 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav div a:hover {
    color: var(--primary);
}

/* Menú hamburguesa */
.menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--light);
    cursor: pointer;
}

.nav-links {
    display: flex;
}

/* --- Hero Section Carrusel --- */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.carousel-hero {
    position: relative;
}

.carousel-hero-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9));
    z-index: 2;
}

.carousel-content {
    position: relative;
    z-index: 3;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 4;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.3);
}

.indicator:hover {
    background: var(--primary);
}

header h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: white;
    font-weight: 700;
    line-height: 1.1;
}

header h1 span {
    color: var(--primary);
}

header p {
    max-width: 600px;
    margin: 1.5rem auto;
    color: var(--gray);
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    border: 2px solid var(--primary);
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
}

/* --- Secciones Generales --- */
section {
    padding: 8rem 10%;
    max-width: 1400px;
    margin: auto;

}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* --- Grid & Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--dark-soft);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #222;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.menu-item span {
    font-weight: 500;
}

.menu-item price {
    color: var(--primary);
    font-weight: 700;
}

/* --- Galería --- */
.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    filter: grayscale(40%);
    transition: var(--transition);
    cursor: pointer;
}

.gallery img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* --- Formulario y Mapa --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

form {
    background: var(--dark-soft);
    padding: 2.5rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    border: 1px solid #333;
    color: white;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
}

footer {
    background: #050505;
    padding: 4rem 10%;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    color: var(--gray);
    flex-wrap: wrap;
}

/* Estilo para enlaces en el footer (tel, email, etc.) */
.footer-info a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-info a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Estilo específico para el enlace de crédito "Diseñado por RM" */
.footer-credit {
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
}

.footer-credit:hover {
    color: #c59d5f;
    text-decoration: none;
}

/* --- Animaciones --- */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.8s ease-out;
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-up.visible,
.fade-in-scale.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .menu-icon {
        display: block !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem 0;
        text-align: center;
    }

    #menu-toggle:checked~.nav-links {
        display: flex;
    }

    section {
        padding: 5rem 5%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }
}


/* Contenedor principal que oculta lo que sale de los bordes */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    /* Degradado suave en los bordes para que parezca que "desaparecen" */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* El carril que se mueve */
.carousel-track {
    display: flex;
    width: calc(250px * 10); /* Ancho de imagen * total de imágenes (original + duplicado) */
    animation: scroll 20s linear infinite reverse;
}

/* Estilo de cada imagen */
.carousel-item {
    width: 250px; /* Ajusta según el tamaño que quieras */
    height: 350px;
    padding: 0 10px;
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px; /* Como en tu imagen de referencia */
    transition: var(--transition);
}

.carousel-item img:hover {
    transform: scale(1.05);
    border: 2px solid var(--primary);
}

/* Animación del movimiento */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se mueve exactamente la mitad del ancho total del track */
        transform: translateX(calc(-250px * 5)); 
    }
}

/* Pausa la animación al pasar el ratón */
.carousel-track:hover {
    animation-play-state: paused;
}




/* --- Sección Ritual --- */
#ritual {
    background: linear-gradient(to bottom, #0d0d0d, #151515);
    padding: 5rem 10%;
}

.ritual-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.ritual-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    line-height: 1;
    opacity: 0.5;
    transition: var(--transition);
}

.ritual-content:hover .step-number {
    opacity: 1;
    color: var(--primary);
    -webkit-text-stroke: 0;
}

.ritual-text h3 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ritual-text p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 500px;
}

.ritual-text strong {
    color: var(--primary);
}

/* Responsivo para el Ritual */
@media (max-width: 768px) {
    .ritual-content {
        flex-direction: column;
        gap: 1rem;
    }
    .step-number {
        font-size: 3.5rem;
    }
}

/* --- Estilo Tipo Hi Noodles --- */
.menu-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Imagen pequeña, lista grande */
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.menu-container.reverse {
    direction: rtl; /* Invierte el orden visual */
}

.menu-container.reverse .menu-list {
    direction: ltr; /* Devuelve el texto a la normalidad */
}

.menu-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 20px 20px 0px var(--primary); /* Detalle de diseño */
}

.menu-list h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.menu-row:hover {
    border-bottom-color: var(--primary);
    padding-left: 10px;
}

.item-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
}

.item-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.3rem;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 1rem;
}

/* Ajuste para móviles */
@media (max-width: 850px) {
    .menu-container, .menu-container.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .menu-image img {
        height: 300px;
        box-shadow: 10px 10px 0px var(--primary);
    }

    .menu-list h3 {
        font-size: 1.8rem;
    }
}


/* --- Estilo Catering Elegante --- */
#catering-premium {
    background: linear-gradient(to right, #0d0d0d 50%, #111 50%);
    padding: 10rem 10%;
    overflow: hidden;
}

.catering-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.catering-content .subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.catering-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.catering-content h2 span {
    font-style: italic;
    color: var(--primary);
    font-weight: 300;
}

.catering-content p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.catering-detail {
    border-left: 2px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
}

/* Botón Minimalista */
.btn-minimal {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

.btn-minimal:hover {
    letter-spacing: 4px;
}

/* --- Estilo Catering Directo y Luminoso --- */
#catering-premium {
    background: #0d0d0d;
    padding: 8rem 10%;
}

.catering-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.catering-content .subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.catering-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
}

.catering-content h2 span {
    font-style: italic;
    color: var(--primary);
    font-weight: 300;
}

.catering-content p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.catering-detail {
    border-left: 2px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
}

/* Botón con estilo */
.btn-minimal {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-minimal:hover {
    color: white;
}

/* Grid Visual (Luminoso) */
.catering-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Imágenes siempre luminosas y con nitidez */
    filter: brightness(1.1) contrast(1.05); 
    display: block;
}

.visual-item.large { grid-row: span 2; }

@media (max-width: 1024px) {
    .catering-wrapper { grid-template-columns: 1fr; text-align: center; }
    .catering-detail { border-left: none; border-top: 1px solid var(--primary); padding-top: 1rem; }
    .catering-visual-grid { grid-template-rows: repeat(2, 200px); }
}


/* --- Sección Reseñas --- */
#reviews {
    text-align: center;
    padding: 5rem 5%;
}

.google-logo-header {
    margin-bottom: 3rem;
}

.google-fixed-logo {
    width: 120px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.stars-summary {
    color: #ffb400;
    font-size: 0.9rem;
}

.reviews-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-out;
    padding: 1rem;
}

.review-card {
    min-width: 320px;
    background: var(--dark-soft);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid #222;
    flex-shrink: 0;
    position: relative;
}

.user-img {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.user-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: #ffb400;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-name {
    color: var(--light);
    font-weight: 600;
}

/* ========================= */
/* 📱 RESPONSIVE MÓVIL */
/* ========================= */

@media (max-width: 768px) {

    #reviews {
        padding: 3rem 0;
    }

    .reviews-carousel {
        overflow: hidden;
        padding: 0;
    }

    .reviews-track {
        gap: 0; /* Quitamos espacio lateral */
        padding: 0;
    }

    .review-card {
        min-width: 100%;
        width: 100%;
        border-radius: 0; /* Opcional: más limpio en móvil */
        padding: 2rem 1.5rem;
    }

}


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a1a; /* Fondo oscuro elegante */
    padding: 25px;
    border: 1px solid #c59d5f;
    border-radius: 15px;
    max-width: 450px;
    width: 85%;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #c59d5f;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Estilo del botón en la lista */
.view-btn {
    display: block;
    margin-top: 8px;
    background: transparent;
    color: #c59d5f;
    border: 1px solid #c59d5f;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #c59d5f;
    color: #fff;
}


/* Media query para móvil: ajustar carousel para evitar scroll horizontal */
@media (max-width: 768px) {
    .carousel-track {
        width: calc(200px * 10); /* Reducir ancho total */
        animation: scroll-mobile 20s linear infinite reverse;
    }

    .carousel-item {
        width: 200px; /* Ancho más pequeño */
        height: 280px; /* Altura proporcional */
    }

    @keyframes scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-200px * 5));
        }
    }
}
/* Estilo para el panel de información de contacto */
.contact-info {
    background: var(--dark-soft);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-section {
    border-bottom: 1px solid #333;
    padding-bottom: 1.5rem;
}

.info-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.address {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.directions-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.directions-link:hover {
    color: var(--primary-hover);
    transform: translateX(3px);
}

.info-section p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.info-section p strong {
    color: var(--light);
    font-weight: 600;
}

.info-section a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.info-section a:hover {
    color: var(--primary-hover);
}

/* Botón WhatsApp personalizado */
.btn-whatsapp {
    display: inline-block;
    width: 100%;
    padding: 1.2rem;
    background: #25d366;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid #25d366;
    margin-top: 0.5rem;
}

.btn-whatsapp:hover {
    background: #1eaa50;
    border-color: #1eaa50;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}



/* Media query para móvil: ajustar carousel para evitar scroll horizontal */
@media (max-width: 768px) {
    .carousel-track {
        width: calc(200px * 10); /* Reducir ancho total */
        animation: scroll-mobile 20s linear infinite reverse;
    }

    .carousel-item {
        width: 200px; /* Ancho más pequeño */
        height: 280px; /* Altura proporcional */
    }

    @keyframes scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-200px * 5));
        }
    }
}