/* ==========================================================
   El Bananas — Pizzería · Villapalacios, Albacete
   Estilo: vibrante, playero, tropical
   ========================================================== */

:root {
  --bg: #FFFDF7;
  --bg-alt: #FFF3D6;
  --surface: #FFFFFF;
  --text: #1B1306;
  --text-muted: #6D5F42;
  --yellow: #F5B800;
  --yellow-dark: #D49E00;
  --red: #D4382C;
  --green: #2D7A3A;
  --dark: #1B1306;
  --border: rgba(27, 19, 6, .08);

  --ff: "Outfit", system-ui, sans-serif;
  --ff-display: "Outfit", system-ui, sans-serif;

  --r: 16px;
  --max-w: 1200px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ff); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 800; line-height: 1.1; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- Botones ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--r); font-weight: 700; font-size: 15px; border: 2px solid transparent; transition: all .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn--yellow { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn--dark:hover { background: #2e2410; }
.btn--outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: #fff; }
.btn--white { background: #fff; color: var(--dark); border-color: #fff; }
.btn--white:hover { background: var(--yellow); border-color: var(--yellow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* ---- Nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; background: rgba(255,253,247,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-size: 22px; font-weight: 900; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.nav__brand-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-size: 20px; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { font-size: 14px; font-weight: 600; color: var(--text-muted); transition: color .2s; }
.nav__links a:hover { color: var(--red); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__cta { padding: 8px 18px; font-size: 13px; border-radius: 10px; }
.nav__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--dark); position: relative; transition: .25s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--dark); transition: .25s; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle.open span { background: transparent; }
.nav__toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav__toggle.open span::after { top: 0; transform: rotate(-45deg); }

.lang-switch { display: flex; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; }
.lang-switch__btn { padding: 4px 10px; font-size: 11px; font-weight: 800; color: var(--text-muted); transition: .2s; }
.lang-switch__btn.active { background: var(--yellow); color: var(--dark); }
.lang-switch__btn:hover:not(.active) { color: var(--dark); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 24px; transform: translateY(-120%); transition: transform .3s; z-index: 99; }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: 0; }
}

/* ---- Hero: grande, amarillo, festivo ---- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 32px) 0 60px; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,19,6,.7) 0%, rgba(212,56,44,.3) 50%, rgba(27,19,6,.8) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 640px; }
.hero__badge { display: inline-block; background: var(--yellow); color: var(--dark); font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.hero__title { font-size: clamp(44px, 8vw, 80px); color: #fff; margin-bottom: 20px; }
.hero__title span { color: var(--yellow); }
.hero__sub { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 500px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Info cards (debajo del hero) ---- */
.info-cards { margin-top: -48px; position: relative; z-index: 2; padding-bottom: 24px; }
.info-cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { background: var(--surface); border-radius: var(--r); padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.08); display: flex; align-items: center; gap: 16px; }
.info-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.info-card strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.info-card span, .info-card a { font-size: 14px; font-weight: 600; color: var(--dark); }
@media (max-width: 768px) { .info-cards__grid { grid-template-columns: 1fr; } .info-cards { margin-top: -24px; } }

/* ---- Secciones ---- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #f0e8d6; }
.section--dark h2 { color: #fff; }
.section--red { background: var(--red); color: #fff; }
.section--red h2 { color: #fff; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head__badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section--dark .section-head__badge { color: var(--yellow); }
.section--red .section-head__badge { color: var(--yellow); }
.section-head__title { font-size: clamp(28px, 4vw, 44px); }
.section-head__sub { color: var(--text-muted); font-size: 16px; margin: 0; }
.section--dark .section-head__sub { color: rgba(240,232,214,.7); }
.section--red .section-head__sub { color: rgba(255,255,255,.8); }

/* ---- About: dos columnas con imagen ---- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__img { border-radius: var(--r); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.about__img img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.about__body h2 { font-size: clamp(28px, 3.5vw, 40px); }
.about__body p { color: var(--text-muted); font-size: 16px; }
.about__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.about__tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--bg-alt); font-size: 13px; font-weight: 600; color: var(--dark); }
.about__tag::before { content: "✓"; color: var(--green); font-weight: 800; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 32px; } .about__img img { min-height: 280px; } }

/* ---- Especialidades: cards horizontales ---- */
.specials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.special { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.special:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.special__img { height: 200px; overflow: hidden; }
.special__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.special:hover .special__img img { transform: scale(1.05); }
.special__body { padding: 24px; }
.special__name { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.special__desc { font-size: 14px; color: var(--text-muted); margin: 0; }
@media (max-width: 768px) { .specials__grid { grid-template-columns: 1fr; } }

/* ---- Galería: grid masonry ---- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery__item { overflow: hidden; border-radius: var(--r); cursor: pointer; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 768px) { .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .gallery__item--big { grid-column: span 2; grid-row: span 1; } }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; background: rgba(27,19,6,.95); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 24px; }

/* ---- Reviews ---- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--surface); border-radius: var(--r); padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.review__stars { color: var(--yellow); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.review__text { flex: 1; font-size: 15px; font-style: italic; color: var(--text); margin-bottom: 16px; }
.review__author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.review__avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); color: var(--dark); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.review__author small { display: block; font-weight: 400; font-size: 12px; color: var(--text-muted); }
@media (max-width: 768px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ---- Contacto ---- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact__body h2 { font-size: clamp(26px, 3.5vw, 36px); }
.contact__body p { color: var(--text-muted); }
.contact__list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact__item { display: flex; gap: 14px; align-items: center; }
.contact__item-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; color: var(--red); flex-shrink: 0; }
.contact__item strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact__item span, .contact__item a { font-size: 15px; font-weight: 600; color: var(--dark); }
.contact__item a:hover { color: var(--red); }
.contact__hours { margin-top: 28px; padding: 24px; background: var(--bg-alt); border-radius: var(--r); border-left: 4px solid var(--yellow); }
.contact__hours h3 { font-size: 18px; margin-bottom: 12px; }
.contact__hours-list { display: grid; gap: 6px; font-size: 14px; }
.contact__hours-list li { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.contact__hours-list li:last-child { border: 0; }
.contact__hours-list span:first-child { font-weight: 700; }
.contact__map { border-radius: var(--r); overflow: hidden; min-height: 420px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__map { min-height: 300px; } }

/* ---- Footer ---- */
.footer { background: var(--dark); color: #c8bfa8; padding: 64px 0 24px; }
.footer a { color: #c8bfa8; }
.footer a:hover { color: var(--yellow); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer__brand-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-size: 18px; }
.footer__desc { font-size: 14px; line-height: 1.7; opacity: .8; max-width: 300px; }
.footer__heading { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); margin: 0 0 16px; }
.footer__list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__eu { text-align: center; padding: 28px 0; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__eu img { max-width: 500px; width: 100%; margin: 0 auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; opacity: .6; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; text-align: center; } }

/* ---- WhatsApp ---- */
.wa { position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37,211,102,.4); z-index: 99; transition: transform .2s; }
.wa:hover { transform: scale(1.1); }
.wa svg { width: 28px; height: 28px; fill: currentColor; }

/* ---- Animaciones ---- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- Legal ---- */
.legal-page { padding: calc(var(--nav-h) + 48px) 0 80px; }
.legal-page__box { max-width: 780px; margin: 0 auto; background: var(--surface); padding: 48px; border-radius: var(--r); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.legal-page h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 24px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 12px; color: var(--red); }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.legal-page ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.legal-page a { color: var(--red); text-decoration: underline; }
.legal-page__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.legal-page__back:hover { color: var(--red); }
@media (max-width: 600px) { .legal-page__box { padding: 28px 20px; } }
