/* ALC Diseño & Metal — estilos compartidos */
:root {
  --bg: #f6f4ef;
  --bg-alt: #ece8df;
  --surface: #ffffff;
  --ink: #23221c;
  --ink-soft: #55524a;
  --muted: #8a857a;
  --line: #ddd8cc;
  --dark: #23221c;
  --dark-2: #2f2e27;
  --gold: #b08d57;
  --gold-soft: #d8c39b;
  --wa: #1fa855;
  --wa-dark: #178a45;

  --radius: 4px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Trazo de celosía para dar profundidad a los fondos */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' fill='none' stroke='%23b08d57' stroke-width='1.2'%3E%3Cpath d='M0 .6h72M.6 0v72M18 18h36v36H18zM36 0v18M36 54v18M0 36h18M54 36h18'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; isolation: isolate; padding: var(--section) 0; }
section[id] { scroll-margin-top: 72px; }
.family { scroll-margin-top: 150px; }

/* Fondos: luz cálida en degradado y un trazo de celosía tenue en una esquina */
.hero__text {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(216,195,155,.22), transparent 70%),
    linear-gradient(180deg, #f8f6f1, #f1ede4);
}
/* Prueba: las secciones lisas en blanco, intercaladas con las beige */
.section { background: #fff; }
.section--alt {
  background-color: var(--bg-alt);
  background-image:
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(176,141,87,.14), transparent 70%),
    linear-gradient(180deg, #ebe5d9, #e2dbcd);
}
.section--alt::before,
.section--dark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; right: 0; width: min(560px, 70%); height: min(520px, 80%);
  background-image: var(--lattice);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 0%, transparent 72%);
  opacity: .5;
}
.section--alt:nth-of-type(4n)::before { right: auto; left: 0; -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 0%, transparent 72%); }
.section--dark {
  background-color: var(--dark); color: #f1eee6;
  background-image:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(176,141,87,.16), transparent 70%),
    linear-gradient(180deg, #26251f, #1e1d18);
}
.section--dark::before { opacity: .28; }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .lead { color: #cfcabd; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 42em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 .95rem/1 var(--font); letter-spacing: .02em;
  text-decoration: none; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: block; width: 92px; aspect-ratio: 1369 / 1067; flex: none; }
.logo-mark {
  display: block; width: 100%; height: 100%;
  background: currentColor;
  -webkit-mask: url("../img/logo-mask.png") center / contain no-repeat;
          mask: url("../img/logo-mask.png") center / contain no-repeat;
}
.header .logo { width: 70px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.header .btn { min-height: 42px; padding: 0 18px; font-size: .85rem; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header .btn--wa { display: none; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .nav .btn--wa { display: inline-flex; margin-top: 16px; padding: 0 26px; color: #fff; border-bottom: 0; }
}
@media (min-width: 861px) { .nav .btn--wa { display: none; } }

/* ---------- Hero (texto + foto vertical) ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: min(calc(100vh - 72px), 820px); }
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero h1 { max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-bottom: 30px; max-width: 32em; }
.hero__media { position: relative; min-height: 420px; background: var(--bg-alt); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.hero__facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts span::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 40px var(--gutter) 36px; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 4.2; }
  .hero .btn-row .btn { flex: 1 1 220px; }
}

/* ---------- Bloques ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 4 / 5; }
}

.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* Usos / aplicaciones */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; aspect-ratio: 3 / 4; background: var(--dark); }
.use img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.use:hover img { transform: scale(1.04); }
.use::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,19,15,.85)); }
.use__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 1; }
.use__txt h3 { margin: 0 0 4px; font-size: 1.05rem; }
.use__txt p { margin: 0; font-size: .85rem; color: #ddd8cb; line-height: 1.45; }
.use--wide { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 960px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .uses { grid-template-columns: 1fr 1fr; gap: 10px; }
  .use__txt { padding: 12px; }
  .use__txt p { display: none; }
  .use--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
}

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.benefit { background: var(--bg); padding: clamp(24px, 3vw, 36px); }
.section--alt .benefit { background: var(--bg-alt); }
.benefit__icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 16px; }
.benefit h3 { margin-bottom: 6px; }
.benefit p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* Comparativo */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.compare__col { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.compare__col h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.compare__col--us { background: var(--dark); color: #f1eee6; border-color: var(--dark); }
.compare__col--us h3 { color: var(--gold-soft); }
.compare__col ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .95rem; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.step__num { font-size: .8rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-soft); }
.step__big { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 500; line-height: 1; margin: 14px 0 10px; color: #fff; }
.step h3 { color: #fff; }
.step p { color: #c9c4b7; margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.note {
  margin-top: 40px; padding: 20px 24px; border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.05); color: #e3dfd3; font-size: .95rem;
}
.note strong { color: #fff; }

/* Colores */
.colors { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.color { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .95rem; }
.color i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.c-negro { background: #1d1d1b; }
.c-gris { background: #7b7d7d; }
.c-dorado { background: linear-gradient(135deg, #c9a768, #a07e45); }
.c-blanco { background: #f8f7f3; }

/* Estilos (familias) */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.style-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.style-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.style-card__swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 24px 24px 0; }
.style-card__body { padding: 20px 24px 24px; }
.style-card__body h3 { margin-bottom: 4px; }
.style-card__body p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.style-card__more { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--gold); }
@media (max-width: 860px) { .styles { grid-template-columns: 1fr; } }

/* Swatch de modelo: la silueta se usa como máscara para poder pintarla de cualquier color */
.swatch {
  display: block; width: 100%; aspect-ratio: 1 / 2.2;
  background: var(--swatch, #1d1d1b);
  /* la imagen va en línea (mask-image) para que la ruta sea relativa a la página */
  -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
          mask-position: center;         mask-size: contain;         mask-repeat: no-repeat;
  transition: background .3s;
}

/* Cobertura */
.coverage { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.coverage__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.coverage__list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.coverage__list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.coverage__list strong { display: block; }
.coverage__list span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; 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-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 44em; }

/* CTA final */
.cta { position: relative; overflow: hidden; color: #fff; text-align: center; }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(20,19,15,.78); }
.cta .wrap { position: relative; z-index: 1; }
.cta .lead { color: #e2ddd0; margin: 0 auto 28px; }
.cta .btn-row { justify-content: center; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; bottom: 0; padding: 6px 10px; font-size: .75rem; color: #fff; background: rgba(20,19,15,.6); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Tabs de aplicación */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  font: 500 .9rem/1 var(--font); padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-panel[hidden] { display: none; }

/* Catálogo de modelos */
.models-toolbar {
  position: sticky; top: 72px; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 14px 0; margin-bottom: 24px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.models-toolbar__label { font-size: .85rem; color: var(--ink-soft); }
.color-pick { display: flex; gap: 8px; }
.color-pick button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  font: 500 .85rem/1 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.color-pick button i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.color-pick button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 560px) {
  .color-pick button { padding: 4px; }
  .color-pick button span { display: none; }
  .color-pick button i { width: 30px; height: 30px; }
}
.models[data-bg="dark"] .model { background: #34332c; border-color: #34332c; }
.models[data-bg="dark"] .model__name { color: #f1eee6; }

.family { margin-bottom: clamp(48px, 7vw, 80px); }
.family__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.family__head p { margin: 0; color: var(--ink-soft); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.model {
  display: flex; flex-direction: column; gap: 14px; padding: 20px 18px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .2s, background .3s;
}
.model:hover { border-color: var(--gold); }
.model .swatch { width: 78%; margin: 0 auto; }
.model__name { font-size: .85rem; font-weight: 600; text-align: center; line-height: 1.3; }
.model__name small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.model__cta { font-size: .75rem; color: var(--wa-dark); text-align: center; font-weight: 600; opacity: 0; transition: opacity .2s; }
.model:hover .model__cta, .model:focus-visible .model__cta { opacity: 1; }
@media (hover: none) { .model__cta { opacity: 1; } }
@media (max-width: 420px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }

/* Segmentos (negocios) */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.segment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.segment img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.segment__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.segment__body p { color: var(--ink-soft); font-size: .95rem; }
.segment__body .checks { margin-bottom: 20px; font-size: .92rem; }
.segment__body .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .segments { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Footer */
.footer { background: #1a1914; color: #bdb8ab; padding: 64px 0 32px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #f1eee6; width: 110px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #e3dfd3; text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #8a857a; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: background .2s, transform .2s;
}
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float { width: 58px; padding: 0; justify-content: center; } .wa-float span { display: none; } }

/* Accesibilidad */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
