/* Heredamos variables del home y definimos locales */
/* Variables SOLO para esta página (no afectan al header/footer) */
.restaurante-page{
    --rest-primary-blue: #1a2a44;
    --rest-gold-accent: #c5a059;
    --rest-light-cream: #f9f7f2;
    --rest-white: #ffffff;
    background-color: var(--rest-white);
}


.restaurante-page {
    background-color: var(--white);
}

/* BANNER */
.rest-banner {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* imagen principal del banner */
.rest-banner-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* capa oscura para mejorar la lectura del texto */
.rest-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 2;
}

.rest-banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.rest-subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--gold-accent);
    display: block;
    margin-bottom: 1rem;
}

.rest-banner-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

/* INTRO */
.rest-intro {
    padding: 8rem 8%;
    background-color: var(--light-cream);
}

/* bloque de introducción en dos columnas */
.rest-intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* separador dorado decorativo */
.gold-divider {
    width: 60px;
    border: 0;
    border-top: 3px solid var(--gold-accent);
    margin: 1.5rem 0;
}

.rest-intro-text h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

/* ESPECIALIDADES DE LA CASA */
.rest-menu-featured {
    padding: 6rem 8%;
    background-color: var(--rest-white);
    text-align: center;
}

.menu-intro-p {
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: #666;
}

/* grid de platos destacados */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* tarjeta de cada plato */
.dish-card {
    background: var(--rest-white);
    transition: transform 0.4s ease;
    text-align: left;
}

.dish-card:hover {
    transform: translateY(-10px);
}

.dish-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.dish-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dish-card:hover .dish-img img {
    transform: scale(1.1);
}

/* precio destacado sobre la imagen */
.dish-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--rest-gold-accent);
    color: white;
    padding: 8px 20px;
    font-weight: bold;
    border-top-left-radius: 12px;
    font-size: 1.1rem;
}

.dish-info h3 {
    color: var(--rest-primary-blue);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: serif; /* O la fuente elegante que uses */
}

.dish-info p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .rest-menu-featured {
        padding: 4rem 5%;
    }
}

/* detalles del restaurante */
.rest-details {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item strong {
    display: block;
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.rest-intro-featured img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0px var(--gold-accent);
}

/* GALLERY MASONRY */
.rest-gallery {
    padding: 6rem 8%;
}

/* Franja de Valores (Divisor visual) */
.rest-values-strip {
    display: flex;
    justify-content: space-around;
    padding: 3rem 8%;
    background-color: var(--rest-primary-blue);
    color: var(--rest-gold-accent);
    text-align: center;
}

.value-item .value-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Ajustes Especialidades */
.rest-menu-featured {
    background: linear-gradient(to bottom, #fdfbf7, #ffffff);
    padding: 5rem 8%;
}

.menu-header {
    text-align: center;
    margin-bottom: 4rem;
}

.title-accent {
    width: 50px;
    height: 3px;
    background: var(--rest-gold-accent);
    margin: 1rem auto;
}

.dish-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding-bottom: 1.5rem;
}

.dish-info {
    padding: 0 1.5rem;
}

.rest-gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

/* galería tipo mosaico */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Variaciones de tamaño para el mosaico */
.item-3 { grid-column: span 2; grid-row: span 2; }
.item-4 { grid-row: span 2; }
.item-7 { grid-column: span 2; }
.item-10 { grid-column: span 2; grid-row: span 2; }

/* CTA SECTION */
.rest-cta {
    padding: 8rem 8%;
    background: linear-gradient(rgba(26, 42, 68, 0.9), rgba(26, 42, 68, 0.9)), 
                url('../img/restauranteView/R14.jpg');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    color: white;
}

/* botón secundario del CTA */
.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 700;
    margin-right: 1rem;
    transition: 0.3s;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-blue);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .rest-intro-container { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .rest-banner-content h1 { font-size: 3rem; }
}

@media (max-width: 600px) {
    .rest-details {
        flex-direction: column;
        gap: 1rem;
    }

    .rest-gallery {
        padding: 4rem 0;
        overflow: hidden;
    }

    .rest-gallery h2 {
        padding: 0 1rem;
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* galería horizontal en móvil */
    .gallery-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 1rem 1rem;
        grid-template-columns: none;
        grid-auto-rows: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-item {
        flex: 0 0 82%;
        height: 260px;
        scroll-snap-align: center;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 14px;
    }

    .item-3,
    .item-4,
    .item-7,
    .item-10 {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-grid {
        scrollbar-width: none;
    }
}

/* botón para llamar */
.btn-llamar {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    margin-top: 20px;
}

.btn-llamar:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-llamar:active {
    transform: translateY(-1px);
}
