/* ==========================================================
   Asmae — Restaurante y Tetería · Albacete
   Colores vivos marroquíes: zellige, terracota, esmeralda
   ========================================================== */

:root {
  --bg: #FDF9F3;
  --bg-elevated: #F3EBD8;
  --bg-card: #FEFCF8;
  --text: #2C1E12;
  --text-muted: #7A6550;
  --gold: #C9973E;
  --gold-light: #E2C07A;
  --zellige: #1A6B7A;
  --terracotta: #C4592A;
  --emerald: #1A7A52;
  --burgundy: #8C3042;
  --white: #FFFFFF;
  --border: rgba(44, 30, 18, .10);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 4px;
  --container: 1200px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { color: var(--text); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--text); }
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; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---- Decoración ---- */
.gold-line { width: 48px; height: 2px; background: linear-gradient(90deg, var(--terracotta), var(--gold)); }
.eyebrow { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--terracotta); }

/* ---- Botones ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; border: 1px solid transparent; transition: all .25s; }
.btn--gold { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn--gold:hover { background: #A84820; border-color: #A84820; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--white); }
.btn--zellige { background: var(--zellige); color: #fff; border-color: var(--zellige); }
.btn--zellige:hover { background: #145862; border-color: #145862; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--text); border-color: #fff; }

/* ---- Nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; background: rgba(253,249,243,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.nav__brand small { display: block; font-family: var(--font-body); font-size: 9px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta); margin-top: 1px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); transition: color .2s; }
.nav__links a:hover { color: var(--terracotta); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__cta { padding: 8px 20px; font-size: 10px; }
.nav__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); position: relative; transition: .25s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--text); 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); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .lang-switch { order: -1; }
  .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: 12px 28px 28px; 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: 14px; border-bottom: 1px solid var(--border); }
  .nav__links a:last-child { border-bottom: 0; }
}

/* ---- Lang switch ---- */
.lang-switch { display: flex; border: 1px solid var(--border); overflow: hidden; }
.lang-switch__btn { padding: 5px 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-muted); transition: .2s; }
.lang-switch__btn.active { background: var(--zellige); color: #fff; }
.lang-switch__btn:hover:not(.active) { color: var(--zellige); }

/* ---- Hero: pantalla completa, centrado ---- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--nav-h) 28px 40px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(44,30,18,.5) 0%, rgba(44,30,18,.82) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero .eyebrow { color: var(--gold-light); }
.hero__content .gold-line { margin: 0 auto 24px; }
.hero__title { font-size: clamp(48px, 9vw, 96px); letter-spacing: -1px; margin-bottom: 24px; color: #fff; }
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__sub { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Info strip (reemplaza hero__meta) ---- */
.info-strip { background: var(--zellige); border-bottom: none; padding: 28px 0; }
.info-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.info-strip__item { font-size: 14px; color: rgba(255,255,255,.9); }
.info-strip__item strong { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.info-strip__item a { color: rgba(255,255,255,.9); }
.info-strip__item a:hover { color: #fff; }
@media (max-width: 640px) { .info-strip__grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---- Secciones ---- */
.section { padding: 100px 0; }
.section--elevated { background: var(--bg-elevated); }
.section--zellige { background: var(--zellige); color: #fff; }
.section--zellige h2, .section--zellige h3 { color: #fff; }
.section--zellige .eyebrow { color: var(--gold-light); }
.section--zellige .section-header__sub { color: rgba(255,255,255,.75); }
.section--zellige .gold-line { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header .gold-line { margin: 0 auto 20px; }
.section-header__title { font-size: clamp(30px, 4.5vw, 50px); }
.section-header__sub { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ---- About: imagen grande + texto al lado ---- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 600px; }
.about__img { position: relative; overflow: hidden; }
.about__img img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.about__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--bg) 100%); }
.about__body { display: flex; flex-direction: column; justify-content: center; padding: 60px 56px 60px 48px; }
.about__body .gold-line { margin-bottom: 20px; }
.about__body h2 { font-size: clamp(30px, 3.5vw, 44px); }
.about__body p { color: var(--text-muted); font-size: 16px; }
.about__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 24px 0 32px; }
.about__list li { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; color: var(--text); }
.about__list li::before { content: "✦"; color: var(--terracotta); font-size: 10px; flex-shrink: 0; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__img img { min-height: 300px; max-height: 400px; }
  .about__img::after { background: linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
  .about__body { padding: 40px 28px; }
  .about__list { grid-template-columns: 1fr; }
}

/* ---- Servicios: 3 columnas con borde dorado ---- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.service { padding: 48px 36px; text-align: center; border: 1px solid var(--border); position: relative; transition: background .3s; background: var(--bg-card); }
.service:hover { background: var(--bg-elevated); }
.service__icon { font-size: 40px; margin-bottom: 20px; }
.service__title { font-size: 24px; margin-bottom: 12px; }
.service__desc { color: var(--text-muted); font-size: 14px; margin: 0; }
.service__line { width: 32px; height: 2px; background: linear-gradient(90deg, var(--terracotta), var(--gold)); margin: 16px auto 0; opacity: .6; }
@media (max-width: 768px) { .services__grid { grid-template-columns: 1fr; } }

/* ---- Galería: grid irregular ---- */
.gallery__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 180px; gap: 8px; }
.gallery__item { overflow: hidden; cursor: pointer; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 4; }
.gallery__item:nth-child(3) { grid-column: span 3; }
.gallery__item:nth-child(4) { grid-column: span 3; }
.gallery__item:nth-child(5) { grid-column: span 4; }
.gallery__item:nth-child(6) { grid-column: span 5; }
.gallery__item:nth-child(7) { grid-column: span 4; }
.gallery__item:nth-child(8) { grid-column: span 4; }
.gallery__item:nth-child(9) { grid-column: span 4; }
@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery__item:nth-child(1) { grid-column: span 2; }
}

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; background: rgba(15,13,11,.96); 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; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; color: var(--white); font-size: 24px; display: grid; place-items: center; }

/* ---- Opiniones: citas grandes centradas ---- */
.reviews__list { display: flex; flex-direction: column; gap: 48px; max-width: 700px; margin: 0 auto; }
.review { text-align: center; padding: 0 20px; }
.review__stars { color: var(--gold); font-size: 16px; letter-spacing: 4px; margin-bottom: 20px; }
.review__text { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 28px); font-weight: 500; font-style: italic; color: var(--text); line-height: 1.4; margin-bottom: 20px; }
.review__author { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.review__divider { width: 32px; height: 2px; background: linear-gradient(90deg, var(--terracotta), var(--gold)); margin: 0 auto; opacity: .5; }

/* ---- Contacto ---- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact__body h2 { font-size: clamp(28px, 3.5vw, 40px); }
.contact__body p { color: var(--text-muted); }
.contact__details { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact__item { display: flex; gap: 16px; align-items: start; }
.contact__item-icon { width: 44px; height: 44px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--terracotta); flex-shrink: 0; background: var(--bg-card); }
.contact__item strong { display: block; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta); margin-bottom: 4px; }
.contact__item span, .contact__item a { font-size: 15px; color: var(--text); }
.contact__item a:hover { color: var(--gold); }
.contact__hours { margin-top: 32px; padding: 24px; background: var(--bg-elevated); border-left: 3px solid var(--terracotta); border-radius: var(--radius); }
.contact__hours h3 { font-size: 18px; margin-bottom: 14px; }
.contact__hours-list { display: grid; gap: 8px; font-size: 14px; }
.contact__hours-list li { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.contact__hours-list li:last-child { border-bottom: 0; }
.contact__hours-list span:first-child { font-weight: 600; color: var(--text); }
.contact__map { overflow: hidden; min-height: 420px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; border-radius: var(--radius); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__map { min-height: 300px; } }

/* ---- Footer ---- */
.footer { background: #1A1714; color: #cdc3b3; border-top: 1px solid rgba(255,255,255,.06); padding: 64px 0 24px; }
.footer a { color: #cdc3b3; }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer__desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 300px; }
.footer__heading { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 18px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-muted); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; color: #cdc3b3; transition: .2s; }
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.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: 12px; font-size: 12px; color: #cdc3b3; opacity: .7; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; text-align: center; } }

/* ---- WhatsApp ---- */
.wa-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); z-index: 99; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---- Animations ---- */
.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(--white); padding: 48px; border: 1px solid var(--border); border-radius: var(--radius); }
.legal-page h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 28px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 12px; color: var(--terracotta); }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.legal-page a { color: var(--terracotta); 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(--gold); }
@media (max-width: 600px) { .legal-page__box { padding: 28px 20px; } }
