/*
Theme Name: Fibonacci FG
Theme URI: https://www.fibonaccifg.com
Author: Fibonacci FG
Description: Tema WordPress para Fibonacci Furniture & Glazing — v6.0
Version: 6.0.0
Text Domain: fibonacci-fg
*/

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Paleta base */
  --bg:        #ffffff;
  --surface:   #fafaf8;
  --text:      #1a1a1a;
  --muted:     #5a5a5a;
  --line:      #e8e4de;

  /* Dorado */
  --gold:      #c89b48;
  --gold-d:    #9b7332;
  --gold-light:#f5e9c8;

  /* Header/Footer oscuro */
  --dark:      #1b191e;
  --dark-2:    #111111;

  /* Sistema */
  --shadow-sm: 0 2px 8px rgba(27,25,30,.06);
  --shadow:    0 8px 28px rgba(27,25,30,.08);
  --shadow-lg: 0 20px 50px rgba(27,25,30,.14);
  --radius:    16px;
  --radius-lg: 24px;
  --container: min(1180px, calc(100% - 40px));
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block }
a { text-decoration: none; color: inherit }
ul, ol { list-style: none }
button { font: inherit; cursor: pointer }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container  { width: var(--container); margin: 0 auto }
.section    { padding: 96px 0 }
.section-sm { padding: 60px 0 }

/* ─── TIPOGRAFÍA ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); font-weight: 800 }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800 }
h3 { font-size: 1.18rem; font-weight: 700 }
h4 { font-size: 1rem; font-weight: 700 }
p  { color: var(--muted); line-height: 1.7 }
p + p { margin-top: 12px }
.lead   { font-size: 1.1rem; color: var(--muted) }
.small  { font-size: .88rem }

.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 12px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: #fffaef; color: var(--gold-d);
  font-size: .8rem; font-weight: 700;
  border: 1px solid #ead8a8;
  margin-bottom: 22px;
}

/* ─── BOTONES ─────────────────────────────────────────────────── */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px;
  border-radius: 999px; font-weight: 700; font-size: .9rem;
  border: 1.5px solid transparent;
  transition: background .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px) }
.btn-primary {
  background: var(--dark); color: #fff; border-color: var(--dark);
  box-shadow: 0 4px 16px rgba(27,25,30,.18);
}
.btn-primary:hover { background: #000; box-shadow: 0 6px 20px rgba(0,0,0,.28) }
.btn-secondary {
  background: transparent; border-color: var(--line); color: var(--text);
}
.btn-secondary:hover { border-color: #bbb }
.btn-gold {
  background: var(--gold); color: #1a1000; border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(200,155,72,.3);
}
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d) }
.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.18) }

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
}
.topbar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 26px;
  height: 105px;
}

/* Logo — directo, sin card, sin fondo */
.brand-link { display: flex; align-items: center; flex-shrink: 0; min-width: 0 }
.brand-logo  { display: block; width: auto; max-width: min(330px, 30vw); height: 78px; max-height: 78px; object-fit: contain }

/* Nav desktop */
.nav {
  display: flex; gap: 28px; align-items: center;
  font-size: .84rem; letter-spacing: .08em; text-transform: uppercase;
}
.nav > a { color: rgba(255,255,255,.72); transition: color .15s }
.nav > a:hover,
.nav > a.active { color: #fff }
.nav .btn-cta {
  text-transform: none; letter-spacing: 0; font-size: .96rem;
  padding: 13px 22px;
  background: transparent; color: var(--gold);
  border: 1.5px solid rgba(200,155,72,.5);
}
.nav .btn-cta:hover {
  background: rgba(200,155,72,.1); color: #f0c870;
  border-color: rgba(200,155,72,.8);
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px;
  transition: .2s;
}

/* ─── HERO PÁGINA INICIO ─────────────────────────────────────── */
.hero { padding: 80px 0 64px; background: var(--bg) }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px; align-items: center;
}

/* Hero con plano full-screen */
.hero.hero-plan {
  position: relative;
  min-height: auto;
  padding: 68px 0 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}
.hero-plan__bg {
  position: absolute;
  inset: 68px 0 0 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.54) 0%, rgba(0,0,0,.76) 100%),
    url('assets/img/plano-hero.jpg') center center / cover no-repeat;
  transform: scale(1.14);
  opacity: .86;
}
.hero-plan__content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 173px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  max-width: 920px;
}
.hero-plan .kicker {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}
.hero-plan h1 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: .98;
  margin: 0;
}
.hero-plan .lead {
  max-width: 740px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
.hero-plan__btns { justify-content: center; }
.hero-plan__btns .btn {
  background: rgba(24,24,28,.92);
  color: #fff;
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.hero-plan__btns .btn:hover {
  background: #111;
  border-color: rgba(255,255,255,.24);
}

/* ─── FOTO — sistema unificado ───────────────────────────────── */
/*
  Todas las fotos pasan por:
  1. filter: saturate(.88) brightness(.96) — tono cálido-neutro
  2. ::after overlay — gradiente sutil para fundir bordes
  Cada imagen puede tener object-position específico vía clase
*/
.fib-photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #f0ece4;
  /* NO poner height fijo aquí — usar min-height o aspect-ratio en modificadores */
}
.fib-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block;
  filter: saturate(.88) brightness(.96) contrast(1.01);
  transition: transform .5s ease, filter .4s ease;
}
.fib-photo:hover img {
  transform: scale(1.03);
  filter: saturate(.94) brightness(.98);
}
.fib-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg,
    rgba(27,25,30,.05) 0%,
    rgba(200,155,72,.04) 100%);
}

/* Modificadores de posición para cada foto */
.fib-photo--top    img { object-position: center top }
.fib-photo--bottom img { object-position: center bottom }
.fib-photo--left   img { object-position: left center }
.fib-photo--right  img { object-position: right center }

/* Modificadores de tamaño */
.fib-photo--hero   { min-height: 560px }
.fib-photo--tall   { min-height: 500px }
.fib-photo--mid    { min-height: 380px }
.fib-photo--sq     { aspect-ratio: 1/1 }

/* Label sobre foto */
.fib-photo__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 18px; z-index: 1; pointer-events: none;
  color: #fff; font-size: .82rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(27,25,30,.55));
}

/* Overlay con gradiente de fade para fotos cortadas en el borde */
.fib-photo--fade-bottom::after {
  background: linear-gradient(180deg,
    transparent 40%,
    rgba(255,255,255,.95) 100%);
}
.fib-photo--no-hover:hover img { transform: none }

/* ─── GALERÍA EN MOSAICO ─────────────────────────────────────── */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 14px;
  margin-top: 36px;
}
/* Cocina con isla — grande izquierda */
.gm-1 { grid-column: 1 / 6; grid-row: 1 / 6 }
/* Lateral cocina — vertical derecha */
.gm-2 { grid-column: 6 / 9; grid-row: 1 / 6 }
/* Mueble TV — top derecha */
.gm-3 { grid-column: 9 / 13; grid-row: 1 / 4 }
/* Estantería dark — bottom derecha ancha */
.gm-4 { grid-column: 9 / 13; grid-row: 4 / 6 }

.gallery-mosaic .fib-photo { border-radius: 18px; width: 100%; height: 100% }

/* ─── GALERÍA EN GRID (páginas internas) ─────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.gallery-grid .fib-photo { min-height: 260px }
.gallery-grid .fib-photo--tall { min-height: 380px }

/* ─── MÉTRICAS / STATS ───────────────────────────────────────── */
.metrics {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 14px; margin-top: 28px;
}
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block; font-size: 1.7rem; font-weight: 800;
  color: var(--text); margin-bottom: 4px;
}
.stat p { font-size: .82rem; color: var(--muted); margin: 0 }

/* ─── SERVICE CARDS ──────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px }

.service-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.service-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
}
.service-card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(200,155,72,.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--gold-d); font-size: .85rem;
}
.service-card p { margin: 0; flex: 1 }
.service-card .btn { align-self: flex-start; margin-top: 8px }

/* ─── CHECKS ─────────────────────────────────────────────────── */
.checks { display: flex; flex-direction: column; gap: 8px; margin-top: 16px }
.checks li {
  position: relative; padding-left: 22px; color: var(--muted); font-size: .95rem;
}
.checks li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--gold-d); font-weight: 700;
}

/* ─── STEPS / PROCESO ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--gold-light); color: var(--gold-d);
  font-weight: 800; font-size: .88rem; margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px }
.step p  { margin: 0 }

/* ─── BANNER OSCURO ──────────────────────────────────────────── */
.banner {
  background: var(--dark); color: #fff;
  border-radius: var(--radius-lg); padding: 44px 48px;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.3fr .7fr;
  gap: 24px; align-items: center;
}
.banner h2 { color: #fff; margin-bottom: 10px }
.banner p  { color: rgba(255,255,255,.72); margin: 0 }
.banner .eyebrow { color: var(--gold) }

/* ─── SPLIT ──────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start }
.split--reverse { direction: rtl }
.split--reverse > * { direction: ltr }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.faq-item h3 { font-size: 1rem; margin-bottom: 6px }
.faq-item p  { margin: 0; font-size: .95rem }

/* ─── FORMULARIO ─────────────────────────────────────────────── */
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 36px;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: 6px }
.contact-card > p { margin-bottom: 20px; font-size: .92rem }
.form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.form-grid .full { grid-column: 1 / -1 }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text) }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff;
  font: inherit; color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,155,72,.12);
}
textarea { min-height: 120px; resize: vertical }
.form-success {
  background: #f0faf4; border: 1px solid #c3e6cb;
  border-radius: 10px; padding: 14px 18px;
  color: #2d6a4f; font-size: .92rem; font-weight: 600;
  margin-bottom: 16px;
}

/* ─── INFO BOX ───────────────────────────────────────────────── */
.info-box {
  background: var(--gold-light); border: 1px solid #e8d090;
  border-radius: var(--radius); padding: 16px 20px;
  margin-top: 18px;
}
.info-box p { margin: 0; font-size: .9rem; color: #6b4f0a }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark-2); color: #fff;
  margin-top: 96px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px; padding: 60px 0 48px;
}
.footer-logo { display: block; width: 180px; height: auto; margin-bottom: 14px; opacity: .85 }
.footer-inner p, .footer-inner a { color: rgba(255,255,255,.65); font-size: .9rem }
.footer-inner a:hover { color: #fff }
.footer-inner h4 { color: rgba(255,255,255,.9); margin-bottom: 14px; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase }
.footer-links { display: flex; flex-direction: column; gap: 8px }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .84rem; color: rgba(255,255,255,.45);
  flex-wrap: wrap; gap: 8px;
}

/* ─── WHATSAPP FLOTANTE ──────────────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: flex; align-items: center; gap: 9px;
  background: var(--dark); color: #fff;
  border-radius: 999px; padding: 13px 20px;
  font-weight: 700; font-size: .88rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
  transition: background .18s, transform .18s;
}
.wa-float:hover { background: #000; transform: translateY(-2px) }
.wa-float svg { flex-shrink: 0 }

/* ─── PAGE HERO ───────────────────────────────────────────────── */
.page-hero { padding: 72px 0 48px }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: .82rem; color: var(--muted);
  margin-bottom: 20px; display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--gold-d) }
.breadcrumb a:hover { color: var(--gold) }
.breadcrumb span { opacity: .5 }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-toggle { display: flex }
  .nav {
    display: none; position: absolute; top: 105px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-transform: none; letter-spacing: 0;
  }
  .nav.is-open { display: flex }
  .nav > a, .nav .btn-cta {
    padding: 15px 20px; font-size: .95rem;
    width: 100%; text-align: left; letter-spacing: 0;
    border-radius: 0; border: none; border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .hero-grid, .page-hero-grid, .split { grid-template-columns: 1fr }
  .hero.hero-plan { padding-top: 42px }
  .hero.hero-plan, .hero-plan__content { min-height: 76vh }
  .hero-plan__bg { inset: 42px 0 0 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr) }
  .grid-3 { grid-template-columns: repeat(2,1fr) }
  .steps  { grid-template-columns: repeat(2,1fr) }
  .metrics { grid-template-columns: repeat(3,1fr) }
  .banner { grid-template-columns: 1fr; padding: 32px }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px }
  .gm-1 { grid-column: 1/2; grid-row: 1/3 }
  .gm-2 { grid-column: 2/3; grid-row: 1/3 }
  .gm-3 { grid-column: 1/2; grid-row: 3/4 }
  .gm-4 { grid-column: 2/3; grid-row: 3/4 }
  .footer-inner { grid-template-columns: 1fr 1fr }
  .fib-photo--hero { min-height: 380px }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr }
  .steps  { grid-template-columns: 1fr }
  .metrics { grid-template-columns: 1fr }
  .form-grid { grid-template-columns: 1fr }
  .gallery-grid { grid-template-columns: 1fr }
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px }
  .gm-1, .gm-2, .gm-3, .gm-4 { grid-column: 1/-1; grid-row: auto }
  .section { padding: 60px 0 }
  .footer-inner { grid-template-columns: 1fr }
  .footer-bottom { flex-direction: column; align-items: flex-start }
  .banner { padding: 24px 20px }
  .contact-card { padding: 24px 20px }
  .btns { flex-direction: column; align-items: stretch }
  .btns .btn { justify-content: center }
}

/* ─── ABERTURAS — galería responsive ──────────────────────── */
.aber-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px }
.aber-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 14px }

@media (max-width: 768px) {
  .aber-row-2 { grid-template-columns: 1fr }
  .aber-row-3 { grid-template-columns: 1fr 1fr }
}
@media (max-width: 480px) {
  .aber-row-3 { grid-template-columns: 1fr }
}

@media (max-width: 767px) {
  .hero-plan__content { padding-top: 52px; padding-bottom: 52px; }
  .hero-plan h1 { max-width: 11ch; }
  .hero-plan .lead { font-size: 1rem; }
}
