/* Grado Cero — estilos compartidos */
:root {
  --paper: #FAF8F2;
  --bone: #F5F0E6;
  --bone-deep: #E6DDCB;
  --line: #D9CFBB;
  --sage: #B5C4A8;
  --bottle: #556B50;
  --forest: #344030;
  --ink: #1A211A;
  --text-2: #56644F;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bottle); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--forest); line-height: 1.08; }
h1 { font-size: clamp(42px, 5.6vw, 78px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 3.6vw, 50px); }
h3 { font-size: 26px; line-height: 1.2; }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-2); max-width: 54ch; }
.kicker { font-size: 14px; color: var(--bottle); margin-bottom: 18px; font-weight: 500; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font: 500 15px/1 var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--forest); color: var(--bone); }
.btn-solid:hover { background: var(--bottle); }
.btn-line { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-line:hover { background: var(--forest); color: var(--bone); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bone-deep);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--text-2); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 72px); background: var(--bone); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter) 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero-text h1 { margin-bottom: 26px; max-width: 13ch; }
.hero-text .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.hero-proof span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bottle); margin-right: 10px; vertical-align: middle; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 20px; bottom: 18px; font-size: 13px; color: var(--bone); text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* Secciones */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 18px; }
.bg-bone { background: var(--bone); }

/* Problema / solución */
.contrast { border-top: 1px solid var(--line); }
.contrast-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.contrast-row > div { padding: 26px 0; }
.contrast-row > div:last-child { padding-left: 40px; border-left: 1px solid var(--line); }
.contrast-head > div { padding: 16px 0; font-size: 14px; font-weight: 500; }
.contrast-head > div:first-child { color: #8A6E5A; }
.contrast-head > div:last-child { color: var(--bottle); }
.contrast-row .bad { color: var(--text-2); font-family: var(--serif); font-size: 22px; line-height: 1.35; padding-right: 32px; }
.contrast-row .good { font-size: 16px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { text-decoration: none; display: flex; flex-direction: column; }
.service-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-deep); margin-bottom: 22px; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .service-img img { transform: scale(1.03); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--text-2); font-size: 15px; margin-bottom: 16px; }
.service .more { margin-top: auto; font-size: 15px; font-weight: 500; color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }

/* Taller */
.taller { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.taller-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.taller h2 { margin-bottom: 24px; }
.taller p { color: var(--text-2); margin-bottom: 18px; max-width: 52ch; }
.taller-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.taller-facts dt { font-size: 14px; color: var(--text-2); }
.taller-facts dd { font-family: var(--serif); font-size: 22px; color: var(--forest); line-height: 1.25; }

/* Ficha técnica del servicio (el elemento protagonista) */
.ficha {
  background-color: var(--forest);
  background-image:
    linear-gradient(rgba(181,196,168,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,196,168,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--bone);
}
.ficha h2 { color: var(--bone); }
.ficha .lede { color: var(--sage); }
.ficha-sheet { border: 1px solid rgba(181,196,168,.45); position: relative; }
.ficha-sheet::before, .ficha-sheet::after {
  content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--sage); border-style: solid;
}
.ficha-sheet::before { top: -7px; left: -7px; border-width: 1px 0 0 1px; }
.ficha-sheet::after { bottom: -7px; right: -7px; border-width: 0 1px 1px 0; }
.ficha-title { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid rgba(181,196,168,.45); font-size: 13px; color: var(--sage); }
.ficha-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ficha-cell { padding: 30px 24px 34px; border-right: 1px solid rgba(181,196,168,.25); border-bottom: 1px solid rgba(181,196,168,.25); }
.ficha-cell:nth-child(3n) { border-right: 0; }
.ficha-cell:nth-last-child(-n+3) { border-bottom: 0; }
.ficha-cell dt { font-size: 14px; color: var(--sage); margin-bottom: 14px; }
.ficha-cell dd { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; color: var(--bone); }
.ficha-cell dd small { display: block; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: rgba(245,240,230,.72); margin-top: 10px; }
/* Cota: línea de dimensión bajo el valor */
.cota { position: relative; height: 1px; background: rgba(181,196,168,.6); margin-top: 18px; width: 72%; }
.cota::before, .cota::after { content: ''; position: absolute; top: -5px; width: 1px; height: 11px; background: rgba(181,196,168,.8); }
.cota::before { left: 0; } .cota::after { right: 0; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: paso; border-top: 1px solid var(--line); }
.step { padding: 28px 28px 0 0; counter-increment: paso; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { content: counter(paso); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--bottle); margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--text-2); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery button { border: 0; padding: 0; background: var(--bone-deep); cursor: zoom-in; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.03); }
.g-a { grid-column: span 4; grid-row: span 2; }
.g-b { grid-column: span 2; grid-row: span 2; }
.g-c { grid-column: span 2; grid-row: span 2; }
.g-d { grid-column: span 2; grid-row: span 2; }
.g-e { grid-column: span 2; grid-row: span 2; }
.gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; color: var(--text-2); font-size: 15px; }
.gallery-foot a { color: var(--forest); font-weight: 500; text-underline-offset: 5px; }

.lightbox { position: fixed; inset: 0; background: rgba(20,26,20,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; width: auto; max-width: 100%; }
.lightbox p { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--bone); font-size: 14px; }
.lightbox button { position: absolute; top: 16px; right: 16px; background: none; border: 1px solid rgba(245,240,230,.5); color: var(--bone); width: 44px; height: 44px; font-size: 22px; cursor: pointer; }

/* Para quién */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.audience > div { padding: 28px 24px 8px 0; }
.audience > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.audience h3 { font-size: 22px; margin-bottom: 10px; }
.audience p { font-size: 15px; color: var(--text-2); }

/* Lista de piezas (landings) */
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pieces li { list-style: none; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; color: var(--forest); }
.pieces li span { display: block; font-family: var(--sans); font-size: 14px; color: var(--text-2); margin-top: 4px; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: 23px; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 24px; color: var(--bottle); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 24px; color: var(--text-2); max-width: 66ch; }

/* Cotización */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote-side h2 { margin-bottom: 20px; }
.quote-side .lede { margin-bottom: 32px; }
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list li span { color: var(--text-2); }
.contact-list a { color: var(--forest); font-weight: 500; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form { background: var(--bone); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--bone-deep); }
.form h3 { margin-bottom: 6px; }
.form .hint { font-size: 14px; color: var(--text-2); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--forest); margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23344030' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bottle); box-shadow: 0 0 0 2px rgba(85,107,80,.2); }
.field input[type="file"] { padding: 10px; background: var(--paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; margin-top: 6px; }
.form .fine { font-size: 13px; color: var(--text-2); margin-top: 14px; text-align: center; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { background: var(--ink); color: var(--sage); padding: 56px 0 40px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer h4 { font-weight: 500; color: var(--bone); margin-bottom: 14px; font-size: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--sage); text-decoration: none; }
.footer a:hover { color: var(--bone); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(181,196,168,.2); color: rgba(181,196,168,.7); }

/* WhatsApp flotante + barra móvil */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(26,33,26,.25);
}
.wa-float svg { width: 30px; height: 30px; }
.mobile-bar { display: none; }

/* Página de gracias */
.thanks { min-height: 70vh; display: flex; align-items: center; background: var(--bone); }
.thanks h1 { margin-bottom: 20px; }
.thanks .lede { margin-bottom: 32px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 46vh; min-height: 280px; }
  .hero-text { padding: 44px var(--gutter) 56px; }
  .services { grid-template-columns: 1fr; gap: 44px; }
  .service-img { aspect-ratio: 4 / 3; }
  .taller, .quote { grid-template-columns: 1fr; }
  .ficha-grid { grid-template-columns: 1fr 1fr; }
  .ficha-cell:nth-child(3n) { border-right: 1px solid rgba(181,196,168,.25); }
  .ficha-cell:nth-child(2n) { border-right: 0; }
  .ficha-cell:nth-last-child(-n+3) { border-bottom: 1px solid rgba(181,196,168,.25); }
  .ficha-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .steps, .audience { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3), .audience > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .pieces { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .g-a { grid-column: span 2; grid-row: span 2; }
  .g-b, .g-c, .g-d, .g-e { grid-column: span 1; grid-row: span 1; }
  .footer-in { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px;
  }
  .mobile-bar .btn { min-height: 46px; padding: 0 12px; font-size: 14px; }
  body { padding-bottom: 72px; }
}
@media (max-width: 620px) {
  .contrast-row { grid-template-columns: 1fr; }
  .contrast-row > div:last-child { padding-left: 0; border-left: 0; padding-top: 0; }
  .contrast-head { display: none; }
  .contrast-row .bad::before { content: 'Lo que suele pasar: '; font-family: var(--sans); font-size: 13px; color: #8A6E5A; display: block; margin-bottom: 6px; }
  .contrast-row .good::before { content: 'En Grado Cero: '; font-weight: 500; color: var(--bottle); }
  .ficha-grid, .steps, .audience, .pieces { grid-template-columns: 1fr; }
  .ficha-cell { border-right: 0 !important; border-bottom: 1px solid rgba(181,196,168,.25) !important; }
  .ficha-cell:last-child { border-bottom: 0 !important; }
  .step + .step, .audience > div + div { border-left: 0; padding-left: 0; }
  .step, .audience > div { padding-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .taller-facts { grid-template-columns: 1fr; }
  .ficha-title span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 980px) { .nav .btn { display: none; } }
