/* =========================================================
   Formen — Landing institucional
   Estética: oscura (negro/grafito) con acento dorado/champagne.
   Serif para títulos · sans-serif para texto.
   ========================================================= */

:root {
  --bg:        #0e0f12;
  --bg-2:      #15161a;
  --surface:   #1b1d22;
  --surface-2: #22242b;
  --line:      #2c2f37;

  --gold:      #c9a24b;
  --gold-soft: #d9c089;
  --gold-dim:  #8c7333;

  --text:      #ece9e3;
  --muted:     #a39f97;
  --muted-2:   #7d7a73;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1140px;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #1a1505; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Tipografía de apoyo ---------- */
.eyebrow {
  font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .6rem; font-weight: 500;
}
.eyebrow.center { text-align: center; }

.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.section-title.center { text-align: center; }

.lead { font-size: 1.18rem; color: var(--text); margin: 0 0 1.2rem; }
.lead.center { text-align: center; max-width: 680px; margin: 0 auto 2.4rem; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 500; letter-spacing: .04em;
  cursor: pointer; transition: all .25s ease; border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1505;
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,162,75,.28); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.link-gold { color: var(--gold-soft); border-bottom: 1px solid transparent; transition: border-color .2s; }
.link-gold:hover { border-color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,15,18,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .22em; }
.brand-sub { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a { font-size: .92rem; letter-spacing: .03em; color: var(--muted); transition: color .2s; }
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--gold-dim); color: var(--gold-soft) !important;
  padding: 8px 18px; border-radius: var(--radius);
}
.nav-cta:hover { background: var(--gold); color: #1a1505 !important; border-color: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(12,13,16,.74) 0%, rgba(12,13,16,.66) 40%, rgba(10,11,14,.94) 100%),
    radial-gradient(1100px 600px at 50% -10%, rgba(201,162,75,.18), transparent 60%),
    url('assets/img/hero.jpg') center 22% / cover no-repeat,
    #0c0d10;
}
.hero-inner { position: relative; z-index: 1; padding: 60px 0; margin: 0 auto; }
.hero-eyebrow { color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1.4rem; }
.hero-title {
  font-size: clamp(3.4rem, 12vw, 7.5rem); letter-spacing: .12em; margin: 0;
  background: linear-gradient(180deg, #fff, var(--gold-soft) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--gold-soft); margin: .4rem 0 1.5rem; }
.hero-lead { max-width: 560px; margin: 0 auto 2.4rem; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 1; color: var(--muted); font-size: 1.3rem; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Nosotros: dos columnas (texto + imagen) */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; display: block; }

/* Stats */
.stats {
  display: flex; flex-wrap: wrap; gap: 40px; list-style: none; padding: 0;
  margin: 3rem 0 0; border-top: 1px solid var(--line); padding-top: 2.4rem;
}
.stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-size: 2rem; color: var(--gold-soft); }
.stat-label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Cards / Servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.6rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.card-title { font-size: 1.45rem; margin-bottom: .6rem; color: var(--text); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card-cta { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border-color: var(--gold-dim); }
.card-cta .link-gold { display: inline-block; margin-top: 1rem; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 2.6rem; }
.gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; aspect-ratio: 4/5; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 30px 16px 14px; font-family: var(--serif); font-size: 1.18rem;
  letter-spacing: .02em; color: var(--text);
  background: linear-gradient(transparent, rgba(8,9,11,.55) 40%, rgba(8,9,11,.9));
}
.gallery-item figcaption::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 8px; }
.gallery-foot { margin-top: 2.4rem; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin-top: 2.6rem; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; }
.contact-h { font-size: 1.1rem; color: var(--gold-soft); margin: 1.4rem 0 .3rem; letter-spacing: .02em; }
.contact-h:first-child { margin-top: 0; }
.contact-line { margin: 0; color: var(--text); }
.contact-list { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.hours-list { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-direction: column; gap: .15rem; max-width: 380px; }
.hours-list li { display: flex; justify-content: space-between; gap: 18px; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-day { color: var(--text); }
.hours-time { color: var(--muted); text-align: right; white-space: nowrap; }
.contact-cta { margin-top: 2rem; align-self: flex-start; }
.contact-map { min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; filter: grayscale(.3) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: #0a0b0d; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 64px 24px 40px; }
.footer-brand { font-size: 1.7rem; letter-spacing: .22em; display: block; }
.footer-tag { color: var(--muted); font-style: italic; font-family: var(--serif); margin: .5rem 0 0; }
.footer-h { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 .8rem; }
.footer-col p { margin: .25rem 0; color: var(--muted); font-size: .95rem; }
.footer-col strong { color: var(--text); }
.footer-link { color: var(--muted); border-bottom: 1px solid transparent; }
.footer-link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom p { margin: 0; color: var(--muted-2); font-size: .82rem; }
.footer-legal { color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-figure { max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 380px; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 16px 24px; }
  .nav-cta { margin: 12px 24px; text-align: center; }

  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats { gap: 28px; }
}

/* ---------- Accesibilidad: respeta reduce-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
