/* ================================== */
/*         ESTILOS GLOBALES           */
/* ================================== */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #34495e;
    --light-gray: #f4f4f4;
    --text-color: #333;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
main { padding-top: 90px; }

/* ================================== */
/*         CABECERA Y MENÚ            */
/* ================================== */
header {
    position: sticky; top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95); padding: 15px 0;
    border-bottom: 1px solid #eee; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
header .logo { display: flex; align-items: center; text-decoration: none; color: var(--secondary-color); }
header .logo img { height: 55px; width: auto; }
header nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; }
header nav ul li { display: inline-block; margin-left: 20px; }
header nav a { text-decoration: none; color: #555; font-weight: bold; font-size: 15px; }
header nav a:hover { color: var(--primary-color); }
.nav-cta a { background-color: var(--primary-color); color: white !important; padding: 10px 20px; border-radius: 5px; transition: all 0.3s; display: block; text-align: center; }
.nav-cta a:hover { background-color: #c0392b; transform: translateY(-2px); }
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1000; }
.hamburger-menu span { display: block; width: 25px; height: 3px; background-color: var(--text-color); margin: 5px 0; transition: all 0.3s; }

/* ================================== */
/*         PÁGINA PRINCIPAL           */
/* ================================== */
.hero-section { position: relative; height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; background: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 20px; }
.hero-content h1 { font-size: 3rem; margin-bottom: 15px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }
.search-form { display: flex; max-width: 500px; margin: 0 auto; border-radius: 50px; overflow: hidden; background-color: white; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.search-form input { flex-grow: 1; border: none; padding: 15px 25px; font-size: 1rem; outline: none; }
.search-form button { border: none; background-color: var(--primary-color); color: white; padding: 0 30px; font-size: 1rem; cursor: pointer; transition: background-color 0.3s; }
.search-form button:hover { background-color: #c0392b; }

.restaurants-section { padding: 40px 0; }
.restaurants-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: var(--secondary-color); }
.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.restaurant-card { position: relative; background-color: white; border-radius: 10px; box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.restaurant-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.featured-badge { position: absolute; top: 15px; right: -5px; background-color: var(--primary-color); color: white; padding: 5px 15px 5px 10px; font-size: 14px; font-weight: bold; border-radius: 3px 0 0 3px; box-shadow: -2px 2px 5px rgba(0,0,0,0.3); }
.featured-badge::after { content: ''; position: absolute; top: 100%; right: 0; border-style: solid; border-width: 0 5px 5px 0; border-color: transparent #c0392b transparent transparent; }
.card-image-container { height: 220px; overflow: hidden; position: relative; }
.card-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.restaurant-card:hover .card-image-container img { transform: scale(1.05); }
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { margin: 0 0 5px 0; font-size: 1.5rem; color: var(--secondary-color); }
.card-location { color: #777; margin: 0 0 15px 0; font-weight: bold; }
.card-description { flex-grow: 1; margin-bottom: 20px; }
.card-button { display: inline-block; background-color: var(--primary-color); color: white; text-align: center; padding: 12px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s; }
.card-button:hover { background-color: #c0392b; }
.restaurant-card.placeholder { background-color: #1c2a38; min-height: 350px; box-shadow: none; cursor: default; }
.restaurant-card.placeholder:hover { transform: none; }

.cta-section { background-color: var(--secondary-color); color: white; padding: 60px 20px; text-align: center; }
.cta-section h2 { font-size: 2.5rem; margin-top: 0; }
.cta-button { display: inline-block; background-color: white; color: var(--secondary-color); padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: bold; margin-top: 20px; transition: transform 0.3s, background-color 0.3s; }
.cta-button:hover { transform: scale(1.05); background-color: #f0f0f0; }
.explore-section { background-color: var(--light-gray); padding: 60px 0; }
.explore-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--secondary-color); }
.all-restaurants-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: flex-start; }
.restaurants-list { display: flex; flex-direction: column; gap: 20px; }
.full-list-card-v2 { display: flex; gap: 20px; background-color: white; border-radius: 12px; box-shadow: var(--card-shadow); text-decoration: none; color: inherit; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.full-list-card-v2:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.list-card-image-v2 { width: 200px; flex-shrink: 0; }
.list-card-image-v2 img { width: 100%; height: 100%; object-fit: cover; }
.list-card-info-v2 { padding: 20px; flex: 1; }
.list-card-info-v2 h3 { margin: 0 0 5px 0; font-size: 1.25rem; color: var(--secondary-color); }
.list-card-location-v2 { margin: 0 0 10px 0; font-size: 0.9rem; color: #777; }
.list-card-rating-v2 { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 0.9rem; }
.list-card-desc-v2 { font-size: 0.95rem; line-height: 1.6; color: #555; }
.home-sidebar { position: sticky; top: 120px; align-self: start; }
.ad-placeholder { background-color: #e9ecef; padding: 20px; border-radius: 8px; text-align: center; margin-bottom: 20px; }
.ad-placeholder h4 { margin-top: 0; color: #777; }
.ad-box { background-color: #ced4da; height: 200px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }

/* ================================== */
/* --- NUEVO DISEÑO PÁGINA DETALLE --- */
/* ================================== */
.resto-profile { background-color: var(--light-gray); padding-top: 30px; }
.resto-header { height: 40vh; background-size: cover; background-position: center; position: relative; border-radius: 12px 12px 0 0; overflow: hidden; }
.webp .resto-header { background-image: var(--bg-webp); }
.resto-header-overlay { background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%); height: 100%; width: 100%; }
.resto-header .container { height: 100%; display: flex; align-items: flex-end; }
.resto-title-card { background-color: rgba(255, 255, 255, 0.95); color: var(--secondary-color); padding: 25px 35px; border-radius: 12px 12px 0 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); transform: translateY(1px); backdrop-filter: blur(5px); display: flex; align-items: center; gap: 20px; }
.resto-logo { width: 80px; height: 80px; border-radius: 50%; border: 4px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.2); object-fit: cover; }
.resto-title-card h1 { margin: 0 0 5px 0; font-size: 2.8rem; }
.resto-meta-info span { font-weight: 500; color: #555; }
.resto-main-content { background-color: #fff; padding: 40px 0; border-radius: 0 0 12px 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.resto-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: flex-start; }
.resto-card { background-color: #fff; padding: 0; border-radius: 0; margin-bottom: 30px; box-shadow: none; border: none; }
.resto-card h2 { margin-top: 0; font-size: 1.8rem; color: var(--secondary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; }
.resto-card-gallery { padding: 0px; }
.resto-card-gallery h2 { padding: 30px 30px 0 30px; margin-bottom: 20px; }
.sticky-card { background-color: var(--light-gray); padding: 30px; border-radius: 12px; position: sticky; top: 120px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #e9ecef; }
.info-list li:last-child { border-bottom: none; }
.info-list .info-icon { font-size: 1.5rem; margin-right: 15px; margin-top: 5px; }
.info-list div { display: flex; flex-direction: column; }
.info-list strong { font-size: 0.9rem; color: #777; margin-bottom: 3px; }
.info-list span, .info-list a { font-weight: 500; color: var(--secondary-color); text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.tags-section { margin-top: 25px; }
.tags-section h4 { margin: 0 0 10px 0; font-size: 1rem; color: #777; }
.tag-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { background-color: #e9ecef; color: #495057; padding: 5px 12px; border-radius: 15px; text-decoration: none; font-size: 0.85rem; transition: background-color 0.2s, color 0.2s; }
.tag-item:hover { background-color: var(--primary-color); color: white; }
.resto-map-card { padding: 0; overflow: hidden; }
.resto-map-card h2 { padding: 30px 30px 0 30px; }
.map-responsive iframe { width: 100% !important; height: 400px !important; border: none; }
.chat-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.chat-buttons a { display: block; padding: 12px; border-radius: 8px; text-align: center; color: white; text-decoration: none; font-weight: bold; }
.btn-whatsapp { background-color: #25D366; }
.btn-telegram { background-color: #0088cc; }
.menu-section { margin-top: 40px; }
.menu-section h2 { margin-top: 0; font-size: 2rem; color: var(--secondary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 20px; }
.menu-category { margin-bottom: 30px; }
.menu-category h3 { font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 15px; }
.menu-item-list { list-style: none; padding: 0; margin: 0; }
.menu-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-bottom: 1px dashed #ddd; }
.menu-item:last-child { border-bottom: none; }
.menu-item-details { flex: 1; padding-right: 20px; }
.menu-item-details h4 { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: 600; }
.menu-item-details p { margin: 0; font-size: 0.9rem; color: #666; }
.menu-item-price { font-size: 1.1rem; font-weight: bold; color: var(--primary-color); white-space: nowrap; }
.social-links-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e9ecef; }
.social-links-section h4 {  margin: 0 0 15px 0; font-size: 1rem; color: #777; }
.social-icons { display: flex; gap: 15px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: white; text-decoration: none; font-weight: bold; font-size: 14px; transition: transform 0.2s; }
.social-icon:hover { transform: scale(1.1); }
.social-icon.facebook { background-color: #3b5998; }
.social-icon.instagram { background: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-icon.tripadvisor { background-color: #34E0A1; }


/* ================================== */
/*        PÁGINAS GENÉRICAS           */
/* ================================== */
.page-container { padding-bottom: 40px; }
.page-header { text-align: center; margin-bottom: 40px; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.page-header h1 { margin-top: 0; color: var(--secondary-color); }
.detailed-search-form, .contact-form-wrapper form { background-color: #ffffff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid #e9ecef; }
.input-group { margin-bottom: 25px; position: relative; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #495057; font-size: 0.9rem; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 14px 18px; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem; box-sizing: border-box; background-color: #f8f9fa; color: #495057; transition: border-color 0.2s, box-shadow 0.2s; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2); background-color: #fff; }
.button-search { width: 100%; padding: 16px; font-size: 1.1rem; font-weight: bold; color: white; background-color: var(--primary-color); border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.3s, transform 0.2s; box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); }
.button-search:hover { background-color: #c0392b; transform: translateY(-2px); }
.button-search:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3); }
.spam-check-group { background-color: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #e9ecef; }
.spam-check-group label strong { color: var(--primary-color); font-size: 1.2rem; }
.category-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.category-list li a { display: block; padding: 20px; background-color: #fff; text-decoration: none; color: var(--secondary-color); font-weight: bold; border-radius: 8px; box-shadow: var(--card-shadow); transition: all 0.3s; }
.category-list li a:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); color: var(--primary-color); }
.no-results { grid-column: 1 / -1; text-align: center; font-size: 1.2rem; padding: 40px; background-color: #fff; border-radius: 8px; }
.contact-content { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-form-wrapper { flex: 2; }
.contact-image-wrapper { flex: 1; min-width: 280px; display: flex; align-items: center; justify-content: center; }
.contact-image-wrapper img { max-width: 100%; height: auto; border-radius: 12px; }
.error-box, .success-box { padding: 15px 20px; margin-bottom: 20px; border-radius: 8px; border: 1px solid; font-weight: 500; }
.error-box { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.success-box { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.google-rating-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e9ecef; }
.rating-box { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rating-score { font-size: 1.5rem; font-weight: bold; color: var(--secondary-color); }
.total-ratings { font-size: 0.9rem; color: #777; }
.google-link { font-size: 0.9rem; }
.stars { --percent: calc(var(--rating) / 5 * 100%); display: inline-block; font-size: 1.2rem; font-family: Times; line-height: 1; }
.stars::before { content: '★★★★★'; letter-spacing: 3px; background: linear-gradient(90deg, #f9c74f var(--percent), #d3d3d3 var(--percent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ================================== */
/*             PIE DE PÁGINA            */
/* ================================== */
footer { margin-top: 50px; padding: 30px 0; background-color: var(--secondary-color); color: #ecf0f1; text-align: center; position: relative; z-index: 10; }
.footer-nav { margin-bottom: 20px; }
.footer-nav a { color: #ecf0f1; text-decoration: none; margin: 0 10px; }
.footer-nav a:hover { text-decoration: underline; }

/* ================================== */
/* --- ESTILOS SUB-FILTROS MODERNOS --- */
/* ================================== */
.sub-filters { background-color: #fff; padding: 20px 25px; margin-bottom: 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); border: 1px solid #e9ecef; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.sub-filters span { font-weight: 600; color: var(--secondary-color); font-size: 1rem; margin-right: 10px; }
.filter-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.tag { background-color: #e9ecef; color: #495057; padding: 8px 18px; border-radius: 50px; text-decoration: none; font-size: 0.9rem; font-weight: 500; border: 1px solid transparent; transition: all 0.2s ease-in-out; }
.tag:hover { background-color: var(--primary-color); color: white; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3); }

/* --- Estilos para el Acordeón de Filtros en Móvil --- */
.filters-accordion { display: none; }

@media (max-width: 768px) {
    .sub-filters { display: none; }
    .filters-accordion { display: block; margin-bottom: 30px; }
    .accordion-item { background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 10px; overflow: hidden; }
    .accordion-header { width: 100%; background-color: transparent; border: none; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1rem; font-weight: bold; color: var(--secondary-color); }
    .accordion-icon { font-size: 1.5rem; transition: transform 0.3s; }
    .accordion-header.active .accordion-icon { transform: rotate(45deg); }
    .accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease-out; padding: 0 20px; }
    .accordion-content.open { max-height: 500px; padding: 10px 20px 20px 20px; }
}


/* ================================== */
/* --- ESTILOS TITULOS GENÉRICOS --- */
/* ================================== */
.page-title-section { text-align: center; margin-bottom: 40px; }
.page-title-section h1 { color: var(--secondary-color); margin-bottom: 10px; }
.page-title-section .page-subtitle { font-size: 1.2rem; color: #555; max-width: 700px; margin-left: auto; margin-right: auto; }


/* ================================== */
/* --- ESTILOS GALERÍA PÚBLICA (SWIPER) --- */
/* ================================== */

.resto-card .swiper-container-wrapper {
    position: relative;
    margin: 0 -15px;
    padding: 0 15px;
}

.resto-card-gallery {
    padding-left: 0;
    padding-right: 0;
}

/* Le damos el padding de vuelta al título para que quede alineado */
.resto-card-gallery h2 {
    padding-left: 30px;
    padding-right: 30px;
}

.swiper.gallery-slider {
    width: 100%;
    height: auto;
    padding-bottom: 40px !important;
}

.swiper-slide {
    /* Por defecto (escritorio) */
    width: 250px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La propiedad clave para que no se deforme */
    display: block;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-80%); /* Ajustado para centrar mejor */
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-prev { left: -5px; }
.gallery-next { right: -5px; }

.gallery-prev::after,
.gallery-next::after {
    font-family: swiper-icons;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}
.gallery-prev::after { content: 'prev'; }
.gallery-next::after { content: 'next'; }

.swiper-pagination {
    position: absolute;
    bottom: 10px !important;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* ================================== */
/* --- ESTILOS MODAL DE COOKIES --- */
/* ================================== */
.cookie-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 9999; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.cookie-modal-overlay.show { opacity: 1; visibility: visible; }
.cookie-modal { background-color: white; color: var(--text-color); padding: 30px 40px; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); width: 90%; max-width: 550px; text-align: center; transform: scale(0.9); transition: transform 0.3s; }
.cookie-modal-overlay.show .cookie-modal { transform: scale(1); }
.cookie-modal-icon { text-align: center; }
.cookie-modal-icon img { width: 60px; height: auto; margin-bottom: 15px; }
.cookie-modal h2 { margin-top: 0; margin-bottom: 15px; color: var(--secondary-color); }
.cookie-modal p { font-size: 1rem; line-height: 1.6; color: #555; margin-bottom: 25px; }
.cookie-modal a { color: var(--primary-color); font-weight: bold; }
.cookie-modal-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.cookie-button-modal { border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: background-color 0.3s, transform 0.2s; border: 2px solid transparent; }
.cookie-button-modal:hover { transform: translateY(-2px); }
.cookie-button-modal.accept { background-color: var(--primary-color); color: white; }
.cookie-button-modal.accept:hover { background-color: #c0392b; }
.cookie-button-modal.reject { background-color: #e9ecef; color: #495057; }
.cookie-button-modal.reject:hover { background-color: #ced4da; }

/* ================================== */
/*       AJUSTES RESPONSIVE FINALES    */
/* ================================== */
@media (max-width: 992px) {
    .hamburger-menu { display: block; }
    .main-nav ul { display: none; position: absolute; top: 86px; left: 0; width: 100%; background-color: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.1); flex-direction: column; padding: 0; }
    .main-nav ul.nav-active { display: flex; }
    .main-nav ul li { width: 100%; text-align: center; margin: 0; }
    .main-nav ul li a { display: block; padding: 15px; border-bottom: 1px solid #f0f0f0; }
    .main-nav ul li.nav-cta { padding: 15px; border-bottom: 1px solid #f0f0f0; }
    .main-nav ul li.nav-cta a { padding: 12px 20px; }
	
	.all-restaurants-layout { grid-template-columns: 1fr; }
	.swiper.gallery-slider { margin-left: 0; margin-right: 0; width: 100%; }
    .swiper-slide { width: 80%; height: 180px; }
    .gallery-prev, .gallery-next { display: none; }
	.swiper-button-prev, .swiper-button-next { display: none !important; }
}

@media (max-width: 900px) {
    .home-sidebar { position: static; margin-top: 30px; }
    .resto-layout { grid-template-columns: 1fr; }
	.resto-title-card { flex-direction: column; text-align: center; padding: 15px 20px; gap: 0; }
    .resto-title-card h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 5px; }
	.resto-logo { width: 60px; height: 60px; margin-bottom: 10px; }
	.contact-image-wrapper { display: none; }
	.resto-meta-info span { font-size: 0.9rem; }
}

/* Solo se muestra en pantallas de tablet para abajo */
@media (max-width: 900px) {
    .resto-profile {
        /* Añadimos padding en la parte inferior para que la barra no tape el contenido */
        padding-bottom: 100px; 
    }

    .mobile-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column; /* Apilamos el título y los botones */
        padding: 8px 10px 10px 10px;
        border-top: 1px solid #eee;
    }

    .action-bar-title {
        font-size: 11px;
        color: #777;
        text-transform: uppercase;
        font-weight: 600;
        margin: 0 0 8px 0;
        text-align: center;
    }

    .action-buttons-container {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .action-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--secondary-color);
        font-size: 12px;
        font-weight: 500;
        gap: 5px;
    }
    
    .action-btn::before {
        font-size: 24px;
        font-weight: normal;
    }
    .action-btn.whatsapp::before { content: '💬'; }
    .action-btn.phone::before { content: '📞'; }
    .action-btn.map::before { content: '📍'; }

    /* Ocultamos los botones originales de la sidebar en móvil */
    .resto-sidebar-col .chat-buttons,
    .resto-sidebar-col .map-button {
        display: none;
    }
}






@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-section { height: 70vh; }
    .hero-content { width: 100%; }
    .search-form { flex-direction: column; background-color: transparent; box-shadow: none; gap: 10px; }
    .search-form input, .search-form button { border-radius: 50px; }
    .search-form button { padding: 15px 30px; }
    .restaurants-section h2, .cta-section h2, .explore-section h2 { font-size: 2rem; }
    .restaurant-grid { grid-template-columns: 1fr; gap: 20px; }
	
	.menu-item { flex-direction: column; align-items: flex-start; }
    .menu-item-price { margin-top: 8px; padding-left: 0; width: 100%; text-align: right; }
	
}

@media (max-width: 640px) {
    .full-list-card-v2 { flex-direction: column-reverse; }
    .list-card-image-v2 { width: 100%; height: 180px; }
}


/* Estilos para las páginas de textos legales */
.legal-text-container { background-color: #fff; padding: 30px 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.legal-text-container h2 { margin-top: 25px; margin-bottom: 10px; font-size: 1.5rem; color: var(--secondary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }
.legal-text-container h2:first-child { margin-top: 0; }
.legal-text-container p, .legal-text-container li { line-height: 1.8; }


/* Estilos para el placeholder de la lista y el botón "Ver Más" */
.full-list-card-v2.placeholder { background-color: #1c2a38; min-height: 150px; box-shadow: none; cursor: default; }
.full-list-card-v2.placeholder:hover { transform: none; }
.view-more-button { display: block; width: 100%; text-align: center; padding: 15px; background-color: var(--primary-color); color: white; font-weight: bold; text-decoration: none; border-radius: 8px; margin-top: 20px; transition: background-color 0.3s; }
.view-more-button:hover { background-color: #c0392b; }


/* --- Estilos para el "Leer más" de la descripción --- */
.descripcion-texto-colapsado { max-height: 200px; overflow: hidden; position: relative; transition: max-height 0.5s ease-in-out; }
.descripcion-texto-colapsado::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60px; background: linear-gradient(to top, white, rgba(255, 255, 255, 0)); pointer-events: none; }
.descripcion-texto-colapsado.expandido { max-height: 2000px; }
.descripcion-texto-colapsado.expandido::after { opacity: 0; }
.leer-mas-btn { display: none; margin-top: 15px; background-color: var(--primary-color); color: white; border: none; padding: 10px 20px; border-radius: 5px; font-weight: bold; cursor: pointer; }


/* --- Estilos para el Acordeón del Menú --- */
.menu-accordion .accordion-item { border-bottom: 1px solid #eee; }
.menu-accordion .accordion-item:last-child { border-bottom: none; }
.menu-accordion .accordion-header { width: 100%; background-color: transparent; border: none; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; }
.menu-accordion .accordion-header span:first-child { font-size: 1.5rem; font-weight: bold; color: var(--secondary-color); }
.menu-accordion .accordion-icon { font-size: 1.8rem; color: var(--primary-color); transition: transform 0.3s; }
.menu-accordion .accordion-header.active .accordion-icon { transform: rotate(45deg); }
.menu-accordion .accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.menu-accordion .accordion-content.open { max-height: 1000px; }
.menu-accordion .menu-item-list { padding-bottom: 20px; }


/* ================================== */
/* --- BARRA DE ACCIONES MÓVIL --- */
/* ================================== */


