/* HDecor landing. Mobile first. Sin recursos de terceros: fuentes del sistema. */
:root {
  --ink: #161514;
  --ink-2: #4a4641;
  --paper: #fbfaf7;
  --soft: #f1ede6;
  --line: #e2dcd2;
  --brand: #c4161c;
  --brand-dark: #9e1015;
  --wood: #b98d52;
  --wa: #13804a;
  --wa-dark: #0e663a;
  --dark: #141414;
  --radius: 10px;
  --wrap: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.draft { background: #ffd400; color: #000; text-align: center; font-weight: 700; padding: 6px 12px; font-size: .9rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px;
  padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 600;
  text-decoration: none; cursor: pointer; font-size: 1rem; font-family: var(--sans); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn--block { width: 100%; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251,250,247,.94);
  backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.logo img { width: 112px; height: auto; }
.nav { display: none; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.lang { font-weight: 700; text-decoration: none; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; }
@media (min-width: 900px) { .nav { display: flex; } .logo img { width: 132px; } }

/* Barra superior de datos */
.topinfo { display: none; background: #fff; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.topinfo__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.topinfo__item { display: inline-flex; align-items: center; gap: 6px; }
.topinfo svg { color: var(--brand); }
.topinfo a { text-decoration: none; }
.topinfo a:hover { color: var(--brand); }
@media (min-width: 900px) { .topinfo { display: block; } }

/* Hero: foto a todo lo ancho, oscurecida, con el texto encima */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: #222; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.6) 45%, rgba(10,10,10,.25) 100%); }
.hero__content { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { max-width: 13em; color: #fff; }
.hero .lead { color: #ece7df; max-width: 32em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: .7em; }
.kicker--light { color: #ff6b6f; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
@media (max-width: 759px) { .hero { min-height: 86vh; align-items: flex-end; }
  .hero__shade { background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.85) 62%); } }

/* Pestanas bajo el hero */
.tabs { border-bottom: 1px solid var(--line); background: #fff; }
.tabs__inner { display: grid; grid-template-columns: repeat(2, 1fr); }
.tabs a { display: block; padding: 16px 12px; text-decoration: none; color: var(--ink-2); font: 600 1rem var(--serif);
  border-bottom: 3px solid transparent; border-right: 1px solid var(--line); text-align: center; }
.tabs a span { color: var(--brand); margin-right: 4px; }
.tabs a:hover { color: var(--ink); border-bottom-color: var(--brand); }
@media (min-width: 760px) { .tabs__inner { grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
  .tabs a { padding: 24px 12px; font-size: 1.12rem; } }

/* Nosotros + cifras */
.about { display: grid; gap: 10px; }
.about__text p { color: var(--ink-2); }
@media (min-width: 900px) { .about { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat strong { display: block; font: 700 clamp(2rem, 6vw, 3rem)/1 var(--serif); color: var(--ink); }
.stat span { color: var(--ink-2); font-size: .92rem; }

/* Exhibidores: seccion propia, oscura, arriba */
.section--retail { background: #111; color: #f4f1ec; }
.retail__head { display: grid; gap: 28px; margin-bottom: 30px; }
.retail__body { color: #d9d4cc; font-size: 1.08rem; max-width: 36em; margin-bottom: 22px; }
.retail__features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.retail__features li { border-top: 2px solid var(--brand); padding-top: 12px; }
.retail__features h3 { color: #fff; font-size: 1.05rem; }
.retail__features p { color: #bdb7ad; margin: 0; font-size: .95rem; }
.gallery--retail button { background: #222; }
.retail__note { color: #8f8a82; font-size: .82rem; margin: 16px 0 0; }
@media (min-width: 900px) {
  .retail__head { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .gallery--retail li:first-child { grid-column: span 2; grid-row: span 2; }
}

/* Area de cocinas: mismo esquema que exhibidores, en claro */
.section--kitchen { background: var(--soft); }
.area__head { display: grid; gap: 28px; margin-bottom: 30px; }
.area__body { color: var(--ink-2); font-size: 1.08rem; max-width: 36em; margin-bottom: 22px; }
.area__features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.area__features li { border-top: 2px solid var(--wood); padding-top: 12px; }
.area__features h3 { font-size: 1.05rem; }
.area__features p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (min-width: 900px) {
  .area__head { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .gallery--kitchen li:first-child { grid-column: span 2; grid-row: span 2; }
}

/* Encabezado de seccion en dos columnas */
.section__head { display: grid; gap: 6px; }
@media (min-width: 900px) { .section__head { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: end; } }

/* Proyectos destacados: foto grande y tarjeta montada */
.projects { display: grid; gap: 40px; margin-top: 28px; }
.project { position: relative; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.project__card { background: #fff; padding: 22px; margin: -40px 16px 0; position: relative; box-shadow: 0 12px 34px rgba(0,0,0,.12); border-radius: 4px; }
.project__tag { color: var(--ink-2); font-size: .85rem; margin-bottom: .4em; }
.project__card h3 { color: var(--brand); }
.project__card p:last-child { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .projects { gap: 64px; }
  .project img { width: 62%; aspect-ratio: 3 / 2; }
  .project__card { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 46%; margin: 0; padding: 36px; }
  .project--right img { margin-left: auto; }
  .project--right .project__card { right: auto; left: 0; text-align: right; }
}

/* Secciones */
.section { padding: 56px 0; }
.section__sub { color: var(--ink-2); margin-top: -.2em; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: #f4f1ec; }
.section--metal { background: #2a2a2a; color: #fff; }
@media (min-width: 900px) { .section { padding: 84px 0; } }

.cards { display: grid; gap: 16px; margin-top: 24px; }
.card { background: #fff; border-radius: 4px; padding: 30px 24px; text-align: center; box-shadow: 0 8px 26px rgba(0,0,0,.07); transition: background .25s, color .25s, transform .25s; }
.card__icon { width: 46px; height: 46px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round; margin: 0 auto 14px; display: block; }
.card:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
.card:hover h3, .card:hover p { color: #fff; }
.card:hover .card__icon { stroke: #fff; }
.card h3 { color: var(--ink); }
.card p { color: var(--ink-2); margin: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }


/* Galeria */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.filters button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 8px 16px; font: 600 .92rem var(--sans); cursor: pointer; min-height: 40px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery li[hidden] { display: none; }
.gallery button { all: unset; cursor: zoom-in; display: block; width: 100%; border-radius: 8px; overflow: hidden; position: relative; background: var(--soft); }
.gallery button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.03); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 96vw; max-height: 82vh; width: auto; border-radius: 6px; margin: 0 auto; }
.lightbox p { color: #eee; text-align: center; margin: 10px 0 0; font-size: .95rem; padding: 0 44px; }
.lightbox__close, .lightbox__btn { position: fixed; background: rgba(0,0,0,.55); color: #fff; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Detalles */
.details { display: grid; gap: 22px; margin-top: 22px; }
.details > div { border-top: 3px solid var(--wood); padding-top: 14px; }
.details p { color: var(--ink-2); margin: 0; }
@media (min-width: 720px) { .details { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .details { grid-template-columns: repeat(4, 1fr); } }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 58px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 1.1rem var(--serif); }
.steps p { color: var(--ink-2); margin: 0; }
.section--dark .steps p { color: #cfc9bf; }
.section--dark .steps li::before { background: var(--brand); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding-left: 0; padding-top: 58px; } }

/* Formulario */
.quote { display: grid; gap: 26px; }
.quote__photos { font-weight: 600; }
@media (min-width: 960px) { .quote { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } }
.qform { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; }
@media (min-width: 720px) { .qform { padding: 28px; } }
.qform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.qform legend, .field label { font-weight: 700; margin-bottom: 8px; display: block; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: var(--paper); font-size: .95rem; min-height: 40px; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.field input, .field select, .field textarea { width: 100%; font: 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid #cfc7ba; border-radius: 8px; padding: 11px 12px; min-height: 46px; }
.field textarea { resize: vertical; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.qform__error { color: var(--brand-dark); font-weight: 700; margin: 0; }
.qform__privacy { font-size: .85rem; color: var(--ink-2); margin: 0; }

/* Herreria y zona */
.metal__sub { color: #ddd; margin-bottom: 18px; }
.section--metal .section__head { margin-bottom: 26px; }
.gallery--metal button { background: #333; }

/* Contacto en tres columnas */
.contact { display: grid; gap: 28px; margin-top: 26px; text-align: center; }
.contact__col svg { color: var(--brand); margin: 0 auto 10px; display: block; }
.contact__col h3 { color: var(--ink-2); }
.contact__col p { margin: 0; font-size: 1.05rem; }
.contact__col a { text-decoration: none; font-weight: 600; }
.contact__col a:hover { color: var(--brand); }
@media (min-width: 760px) { .contact { grid-template-columns: repeat(3, 1fr); } }

/* Pie */
.footer { background: var(--dark); color: #cfc9bf; padding: 36px 0 90px; font-size: .92rem; }
.footer__inner { display: grid; gap: 8px; }
.footer p { margin: 0; }
.footer__legal { color: #8f8a82; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float:hover { background: var(--wa-dark); }

/* Paginas de texto */
.prose { max-width: 820px; }
.prose h1 { margin-bottom: .4em; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose .meta { color: var(--ink-2); }
.prose .notice { background: var(--soft); border-left: 4px solid var(--wood); padding: 12px 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose th { background: var(--soft); }
