/*
Theme Name: LimaFusion
Theme URI: https://limafusion.cl
Author: La Vitamina
Author URI: https://lavitamina.cl
Description: Tema WordPress a medida para Lima Fusión — alta cocina peruana en Quillota. Contenido administrable mediante Secure Custom Fields (SCF) y formulario de contacto mediante Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: limafusion
*/

/* ============================================
   Lima Fusión — estilos propios (sobre Bootstrap 5)
   ============================================ */

@font-face {
  font-family: 'Elephant';
  src: url('assets/fonts/ELEPHNT.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #c9a24b;
  --bg-dark: #0b0a09;
  --bg-dark-2: #0e0c0b;
  --bg-dark-3: #080706;
  --text-light: #f3eee4;
  --text-body: #ece7dd;
  --text-muted: #b8b2a7;
  --text-faint: #8b867d;
  --text-faintest: #6f6a61;
  --line: rgba(236, 231, 221, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-body);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201, 162, 75, .28); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%;width: 200px;height: auto; }
::placeholder { color: var(--text-faintest); }

.text-gold { color: var(--gold); }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
}

.section-title {
  margin: 0;
  font-family: 'Elephant', sans-serif;
  font-weight: 200;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.04;
  color: var(--text-light);
}

.link-gold {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-body);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 7px;
  white-space: nowrap;
  cursor: pointer;
}

.link-gold-sm {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.btn-gold {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bg-dark) !important;
  background: var(--gold);
  border: 0;
  border-radius: 1px;
  padding: 13px 26px;
  transition: opacity .3s;
}
.btn-gold:hover { opacity: .85; color: var(--bg-dark); }

.btn-text-muted {
  background: none;
  border: 0;
  color: var(--text-faint);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-padding { padding: clamp(72px, 10vw, 128px) 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- Navbar ---------- */
#mainNav {
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
}
#mainNav.scrolled {
  background: rgba(11, 10, 9, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
#mainNav .nav-link {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .3s;
}
#mainNav .nav-link:hover { color: var(--text-body); }
.navbar-toggler { border: 0; box-shadow: none !important; padding: 4px; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(236,231,221,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-brand {
  max-width:170px;
}
#navMenu { background: transparent; }
@media (max-width: 991.98px) {
  #navMenu { margin-top: 14px; border-top: 1px solid var(--line); padding: 10px 4px 16px; }
  #mainNav .nav-link { padding: 12px 0; border-bottom: 1px solid rgba(236, 231, 221, .08); color: var(--text-body); }
  .btn-gold.ms-lg-2 { margin-top: 10px; display: inline-block; text-align: center; }
}

/* ---------- Hero / Portada ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  animation: lf-kb 20s ease-out forwards;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,9,.74) 0%, rgba(11,10,9,.55) 40%, rgba(11,10,9,.82) 78%, rgba(11,10,9,1) 100%);
}
@keyframes lf-kb { 0% { transform: scale(1.05); } 100% { transform: scale(1.14); } }
.hero-content { padding-top: 120px; max-width: 900px; }
.hero-content .eyebrow { letter-spacing: .5em; }
.display-title {
  margin: 0;
  font-family: 'Elephant', sans-serif;
  font-weight: 200;
  font-size: clamp(48px, 10vw, 120px);
  line-height: .96;
  color: var(--text-light);
}
.hero-tagline {
  margin: 26px auto 0;
  max-width: 420px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: #cfc9bf;
}

/* ---------- Platos de autor ---------- */
.plato-img { aspect-ratio: 4 / 5; overflow: hidden; background: #161412; }
.plato-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.plato:hover .plato-img img { transform: scale(1.06); }
.plato-body { padding: 18px 2px 0; }
.plato-body .tag {
  font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold);
}
.plato-body .price { font-family: 'Jost', sans-serif; font-size: 14px; color: var(--gold); white-space: nowrap; }
.plato-title { margin: 0 0 8px; font-family: 'Elephant', sans-serif; font-weight: 300; font-size: 21px; color: var(--text-light); }
.plato-desc { margin: 0; font-size: 13px; line-height: 1.65; color: var(--text-faint); }

/* ---------- Sello de la casa ---------- */
.banda-sello {
  position: relative;
  height: clamp(300px, 42vw, 480px);
  display: flex; align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.banda-bg {
  position: absolute; inset: 0;
  background-image: url('assets/images/sello-bg.jpg');
  background-size: cover; background-position: center;
}
.banda-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,10,9,.92) 0%, rgba(11,10,9,.62) 55%, rgba(11,10,9,.35) 100%);
}
.banda-title {
  margin: 0; font-family: 'Elephant', sans-serif; font-weight: 200;
  font-size: clamp(26px, 4.4vw, 52px); line-height: 1.08; color: var(--text-light); max-width: 14ch;
}

/* ---------- Misión · Visión ---------- */
.mv-section { border-top: 1px solid var(--line); background: var(--bg-dark-2); }
.mv-col { padding: clamp(48px, 7vw, 92px) clamp(24px, 4vw, 64px); }
.border-end-custom { border-right: 1px solid var(--line); }
@media (max-width: 767.98px) { .border-end-custom { border-right: 0; border-bottom: 1px solid var(--line); } }
.mv-text {
  margin: 0; font-family: 'Jost', sans-serif; font-weight: 200;
  font-size: clamp(18px, 2.1vw, 25px); line-height: 1.5; color: #e7e1d6;
}

/* ---------- Valores ---------- */
.valores-section { background: var(--bg-dark-2); padding-bottom: clamp(48px, 7vw, 90px); }
.valores-grid {
  gap: 0;
}
.valor-item { background: var(--bg-dark-2); padding: 30px 26px; }
.valor-icon { color: var(--gold); margin-bottom: 16px; }
.valor-title { margin: 0 0 8px; font-family: 'Elephant', sans-serif; font-weight: 300; font-size: 18px; color: var(--text-light); }
.valor-desc { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-faint); }
@media (max-width: 576px) {
  .valor-item { padding: 16px 10px; }
  .valor-icon { width: 20px; height: 20px; margin-bottom: 10px; }
  .valor-title { font-size: 14px; }
  .valor-desc { font-size: 11.5px; }
}

/* ---------- Contacto ---------- */
.contacto-img-col { min-height: 340px; position: relative; overflow: hidden; border-right: 1px solid var(--line); }
.contacto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) { .contacto-img-col { min-height: 260px; position: relative; border-right: 0; } .contacto-img { position: relative; } }
.contacto-form-col { padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 64px); }
.contacto-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-bottom: clamp(32px, 4.5vw, 48px); padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.meta-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; }
.meta-link { color: var(--text-body); text-decoration: underline; text-underline-offset: 3px; }
.meta-link:hover { opacity: .8; }

/* ---------- Formulario de contacto (Contact Form 7) ---------- */
.form-label-custom {
  display: block; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px;
}
.contacto-form-col .wpcf7-form p { margin-bottom: 26px; }
.contacto-form-col .wpcf7-form-control-wrap { display: block; }
.form-control-custom,
.contacto-form-col input[type="text"],
.contacto-form-col input[type="tel"],
.contacto-form-col input[type="email"],
.contacto-form-col textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(236,231,221,.2);
  color: var(--text-body); font-size: 16px; padding: 8px 0; outline: none; font-family: inherit;
}
.form-control-custom:focus,
.contacto-form-col input:focus,
.contacto-form-col textarea:focus { border-bottom-color: var(--gold); }
textarea.form-control-custom,
.contacto-form-col textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--text-faintest); }
.form-note.is-error { color: var(--gold); }
.thank-you { border: 1px solid var(--gold); padding: clamp(32px, 4vw, 48px); text-align: center; }
.thank-title { font-family: 'Elephant', sans-serif; font-weight: 200; font-size: clamp(24px, 3.6vw, 36px); color: var(--text-light); margin-bottom: 16px; }
.thank-text { margin: 0 auto 28px; max-width: 46ch; font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.contacto-form-col .wpcf7-not-valid-tip { color: var(--gold); font-size: 12.5px; margin-top: 6px; }
.contacto-form-col .wpcf7-response-output { border-color: var(--line) !important; color: var(--text-muted); font-size: 13px; margin-top: 18px !important; }
.contacto-form-col .wpcf7-spinner { display: none; }

/* ---------- Visítanos ---------- */
.visitanos-section { border-top: 1px solid var(--line); }
.visitanos-info { padding: clamp(48px, 7vw, 90px) clamp(24px, 4vw, 64px); }
.horario { border-top: 1px solid rgba(236,231,221,.1); }
.horario-row { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(236,231,221,.1); }
.horario-row .dia { color: var(--text-body); }
.horario-row .hora { color: var(--text-faint); font-size: 14px; text-align: right; }
.direccion-block { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.direccion-linea { color: var(--text-body); }
.telefono-link:hover { color: var(--gold); }
.visitanos-map { min-height: 340px; position: relative; filter: grayscale(1) contrast(1.05) brightness(.78); }
.visitanos-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark-3); border-top: 1px solid var(--line); padding: 40px 0; }
.copyright { font-size: 12.5px; color: var(--text-faintest); }
.footer-link { font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); }
.footer-link:hover { color: var(--gold); }

/* ---------- Modal Carta ---------- */
#cartaModal .modal-content { background: var(--bg-dark-2); border: 1px solid var(--line); border-radius: 0; }
#cartaModal .modal-header { border-bottom: 1px solid var(--line); padding: 14px 20px; }
#cartaModal .carta-iframe { width: 100%; height: 78vh; border: 0; background: #161412; }

/* ---------- Utilidades ---------- */
select option { background: #161412; color: var(--text-body); }

/* ---------- CTA reserva móvil (navbar) ---------- */
.nav-cta-mobile {
  padding: 8px 16px;
  font-size: 10.5px;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1050;
}
.wa-float-label {
  background: #fff;
  color: #111;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.wa-float {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float-wrap:hover .wa-float { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
@media (max-width: 575.98px) {
  .wa-float-wrap { right: 16px; bottom: 16px; gap: 8px; }
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float-label { font-size: 12px; padding: 7px 13px; }
}
