* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; background: #f5f6f8; color: #222; line-height: 1.6; }
[hidden] { display: none !important; }

/* HERO configurable desde config.json */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; padding: 80px 20px; background: #111827; color: white; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-image); background-size: cover; background-position: center; opacity: .42; display: none; }
.hero-has-image::before { display: block; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,.55), rgba(17,24,39,.88)); }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.logo { width: 90px; height: 90px; margin-bottom: 15px; border-radius: 50%; background: white; object-fit: contain; }
.hero h1 { font-size: 42px; margin-bottom: 10px; }
.hero p { font-size: 18px; color: #e5e7eb; }
.business-type { font-size: 13px !important; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; opacity: .85; }

/* CABECERA DE PÁGINAS INTERNAS MULTI */
.page-header { max-width: none; padding: 55px 20px 35px; text-align: center; background: #111827; color: white; }
.page-header-type { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .75; margin-bottom: 6px; }
.page-header h1 { font-size: 34px; line-height: 1.2; margin-bottom: 7px; }
.page-header p:last-child { max-width: 760px; margin: 0 auto; color: #d1d5db; }
.page-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.page-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(255,255,255,.08); color: white; text-decoration: none; font: inherit; cursor: pointer; }
.page-action:hover { background: rgba(255,255,255,.16); }
.page-action-whatsapp { background: #25D366; border-color: #25D366; }
.page-action-whatsapp:hover { background: #20bd5a; }
.multi-inner-page main > section:first-child { padding-top: 50px; }
.multi-inner-page #perfil > h2 { display: none; }
.multi-inner-page #servicios > h2 { display: none; }
.multi-inner-page #galeria > h2 { display: none; }
.multi-inner-page #ubicacion > h2 { display: none; }

.whatsapp { display: inline-block; margin-top: 25px; background: #25D366; color: white; text-decoration: none; padding: 14px 25px; border-radius: 8px; font-weight: bold; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.contact-action { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: white; padding: 11px 16px; border-radius: 8px; cursor: pointer; }

section { max-width: 1000px; margin: auto; padding: 55px 20px; }
section h2 { text-align: center; margin-bottom: 30px; font-size: 30px; }
.about { text-align: center; font-size: 18px; max-width: 820px; margin: auto; }

.services, .products, .benefits, .menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service, .benefit, .product, .menu-item, .profile-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.service { text-align: center; }
.service h3, .benefit h3, .menu-item h3 { margin-bottom: 10px; }
.benefit { text-align: center; }
.benefit-icon { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; background: #111827; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; }

.catalog-button, .location-button { display: block; width: fit-content; margin: 0 auto 25px; padding: 12px 20px; border-radius: 8px; background: #111827; color: white; text-decoration: none; }
.products { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.product { padding: 0; overflow: hidden; }
.product img, .menu-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.product-content { padding: 20px; }
.product-content strong, .menu-item strong { display: block; margin: 10px 0; }
.product-whatsapp { display: inline-block; text-decoration: none; color: #111827; font-weight: bold; }

/* MENÚ DE RESTAURANTE */
.menu-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.menu-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.menu-item img { height: 210px; aspect-ratio: 4 / 3; object-fit: cover; }
.menu-item > div { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.menu-category { display: block; margin-bottom: 5px; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; }
.menu-item p { color: #555; }
.menu-item strong { font-size: 20px; margin-top: auto; padding-top: 12px; }

.profile-card { max-width: 800px; margin: auto; }
.profile-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.profile-item { display: flex; flex-direction: column; gap: 3px; padding: 12px; background: #f5f6f8; border-radius: 8px; }
.profile-item span { color: #555; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }

.location { text-align: center; font-size: 18px; }
.social { text-align: center; margin-top: 25px; }
.social a { color: white; margin: 0 10px; text-decoration: none; }
.contact { background: #111827; color: white; max-width: none; text-align: center; }
footer { background: #0b1120; color: #aaa; text-align: center; padding: 20px; font-size: 14px; }

/* MENÚ */
.navbar { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.nav-container { max-width: 1100px; margin: auto; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { text-decoration: none; font-weight: bold; color: #111827; font-size: 18px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: #333; font-size: 15px; }
.menu-button { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; }

.whatsapp-float { position: fixed; width: 60px; height: 60px; right: 20px; bottom: 20px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 28px; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 2000; }

@media (max-width: 700px) {
    .hero { min-height: 470px; padding: 65px 15px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }
    .page-header { padding: 40px 15px 28px; }
    .page-header h1 { font-size: 28px; }
    .page-actions { gap: 7px; }
    .page-action { flex: 1 1 calc(50% - 7px); }
    section { padding: 40px 15px; }
    section h2 { font-size: 26px; }
    .menu-button { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; gap: 10px; padding-top: 10px; }
    .nav-links.active { display: flex; }
    .nav-container { flex-wrap: wrap; }
    .menu-grid { grid-template-columns: 1fr; }
    .menu-item img { height: 220px; }
}
