:root {
  --bg: #fbf8f3;
  --bg-alt: #f2ece2;
  --ink: #1f1b16;
  --muted: #6b6258;
  --line: #e2d9cb;
  --card: #ffffff;
  --brand: #e94f37;
  --brand-ink: #ffffff;
  --radius: 16px;
  --wall: #e8d5b7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --bg-alt: #201c16;
    --ink: #f3ede4;
    --muted: #b3a998;
    --line: #3a332a;
    --card: #241f19;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Botones */
.btn {
  display: inline-block; padding: .85em 1.4em; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font-weight: 600; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px var(--brand); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { box-shadow: none; }
.btn--sm { padding: .5em 1em; font-size: .9rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .5em; font-family: "Fraunces", serif; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.brand__dot { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#e94f37, #f6c445, #2a9d8f, #3a5ba0, #e94f37); }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 1rem;
    padding: 1.2rem 16px 1.6rem; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.open { display: flex; }
}

/* Hero */
.hero { position: relative; padding: clamp(4rem, 12vw, 8rem) 0; overflow: hidden; }
.hero__splash span {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1;
  background: var(--c); opacity: .85; filter: blur(2px);
  border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
  animation: blob 14s ease-in-out infinite alternate;
}
.hero__splash span:nth-child(2) { animation-delay: -4s; }
.hero__splash span:nth-child(3) { animation-delay: -8s; }
@keyframes blob {
  to { border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%; transform: translate(12px, -16px) rotate(18deg); }
}
.hero__content { position: relative; z-index: 1; max-width: 760px; }
.hero__content::before {
  content: ""; position: absolute; inset: -2rem -1.5rem; z-index: -1; display: none;
  background: color-mix(in srgb, var(--bg) 55%, transparent); border-radius: 28px; backdrop-filter: blur(4px);
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--brand); margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; }
h1 em { font-style: italic; color: var(--brand); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Secciones */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__sub { color: var(--muted); max-width: 60ch; margin: 0 0 2rem; }
.grid { display: grid; gap: 1.2rem; }
.cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; position: relative; overflow: hidden; transition: transform .2s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--accent); }
.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); margin: 0; }

/* Colores */
.colores { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; max-width: 380px; }
.swatch {
  aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--line); cursor: pointer;
  transition: transform .15s; padding: 0;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch-name { font-weight: 600; min-height: 1.6em; margin: 1rem 0 .4rem; }
.custom-color { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); }
.custom-color input { width: 44px; height: 32px; border: 0; background: none; cursor: pointer; }

.room { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
.room__wall { position: absolute; inset: 0 0 25% 0; background: var(--wall); transition: background .5s; }
.room__floor { position: absolute; inset: 75% 0 0 0; background: repeating-linear-gradient(90deg, #b88a5a 0 60px, #a97c4f 60px 62px); }
.room__window {
  position: absolute; left: 12%; top: 14%; width: 22%; height: 38%;
  background: linear-gradient(#bfe3f5, #e7f5fb); border: 8px solid #fff; box-shadow: inset 0 0 0 2px #ddd;
}
.room__window::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; background: #fff; transform: translateX(-50%); }
.room__sofa {
  position: absolute; left: 42%; bottom: 20%; width: 46%; height: 22%;
  background: #34495e; border-radius: 18px 18px 8px 8px;
}
.room__sofa span { position: absolute; left: 6%; right: 6%; bottom: 20%; height: 40%; background: #2c3e50; border-radius: 10px; }
.room__plant {
  position: absolute; right: 4%; bottom: 22%; width: 7%; height: 30%;
  background: radial-gradient(circle at 50% 30%, #3f8f4f 45%, transparent 46%) top/100% 60% no-repeat,
              linear-gradient(#c96f3b, #a85a2e) bottom/70% 35% no-repeat;
}

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.calc__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
}
.calc__form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; color: var(--muted); }
.calc__form input, .calc__form select {
  font: inherit; color: var(--ink); background: var(--bg); padding: .65em .8em;
  border: 1px solid var(--line); border-radius: 10px; width: 100%;
}
.calc__out {
  grid-column: 1 / -1; background: var(--bg-alt); border-radius: 12px; padding: 1.2rem; display: block;
}
.calc__out strong { font-family: "Fraunces", serif; font-size: 2rem; color: var(--brand); display: block; }

/* Servicios */
.services { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.services p { color: var(--muted); margin: 0; }
.ico { font-size: 2rem; display: block; margin-bottom: .4rem; }
.marcas__title { margin-top: 3rem; }
.marcas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.marcas li { background: var(--card); border: 1px solid var(--line); padding: .5em 1.1em; border-radius: 999px; font-weight: 600; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.info { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
.info li { display: grid; }
.info strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.horarios { border-collapse: collapse; width: 100%; max-width: 420px; }
.horarios td { padding: .5em 0; border-bottom: 1px solid var(--line); }
.horarios td:last-child { text-align: right; font-weight: 500; }
.map { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); background: var(--bg-alt); }

.footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer p { margin: 0; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

@media (max-width: 820px) {
  .hero__splash span { width: calc(var(--s) * .6); }
  .hero__content::before { display: block; background: color-mix(in srgb, var(--bg) 68%, transparent); }
  .colores, .calc, .contacto { grid-template-columns: 1fr; gap: 2rem; }
  .calc__form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
