:root {
  --red: #d61128;
  --red-dark: #a90f22;
  --green: #148a54;
  --gold: #c98a3d;
  --brown: #7c5731;
  --ink: #1f1f1f;
  --muted: #6c5d55;
  --paper: #fffaf5;
  --white: #ffffff;
  --line: #ecd9ca;
  --shadow: 0 24px 70px rgba(80, 38, 27, 0.16);
  --radius: 28px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 17, 40, 0.08), transparent 34rem),
    linear-gradient(180deg, #fffefd 0%, var(--paper) 56%, #fff 100%);
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-pad {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(214, 17, 40, var(--header-alpha, 1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 30px rgba(102, 13, 25, 0.18);
  backdrop-filter: blur(16px);
  transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(80, 38, 27, 0.1);
}

.brand img {
  width: 168px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.site-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(69, 10, 18, 0.24);
  transition: background-color 220ms ease, color 220ms ease, text-shadow 220ms ease, transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  text-shadow: none;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.02;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: #311b16;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.9rem);
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 18px;
  color: #3b2018;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.lead {
  max-width: 680px;
  color: #4b332d;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(214, 17, 40, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.product-card:hover .btn-primary,
.product-card:focus-within .btn-primary {
  background: var(--red-dark);
  box-shadow: 0 20px 40px rgba(214, 17, 40, 0.3);
  transform: translateY(-1px);
}

.btn-soft {
  color: var(--red);
  background: #fff1ee;
}

.btn-soft:hover,
.btn-soft:focus-visible {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(214, 17, 40, 0.22);
  transform: translateY(-1px);
}

.hero-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(214, 17, 40, 0.12);
  border-radius: 42px;
  background: #f4dcc8;
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  content: "";
}

.hero-panel::before {
  inset: -24px;
  background: url("assets/img/fondo-mesa-madera-vacia-mantel_93675-129997.avif") center / cover no-repeat;
  transform: scale(1.04);
}

.hero-panel::after {
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 250, 245, 0.76), rgba(214, 17, 40, 0.14) 58%, rgba(80, 38, 27, 0.12)),
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.46), transparent 13rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.hero-product {
  position: absolute;
  z-index: 1;
  object-fit: cover;
  background: #fff;
  border: 10px solid #fff;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(73, 30, 20, 0.16);
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.hero-product:hover,
.hero-product:focus-visible {
  filter: saturate(1.08) contrast(1.03);
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 28px 60px rgba(73, 30, 20, 0.28);
}

.hero-product-a {
  top: 46px;
  left: 38px;
  width: 52%;
  height: 390px;
}

.hero-product-b {
  right: 28px;
  bottom: 48px;
  width: 52%;
  height: 275px;
}

.two-col,
.contact-grid,
.identity-card,
.catalog-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.brand-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  max-width: 580px;
  text-align: center;
  margin-inline: auto;
}

.value-grid,
.families-grid,
.product-grid {
  display: grid;
  gap: 22px;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-card,
.family-card,
.product-card,
.contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(80, 38, 27, 0.08);
}

.value-card {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius);
}

.value-card span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  color: var(--white);
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.families-grid {
  grid-template-columns: repeat(4, 1fr);
}

.family-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.family-card:hover,
.family-card:focus-visible {
  border-color: rgba(214, 17, 40, 0.34);
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(80, 38, 27, 0.14);
}

.family-card::before {
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  content: "";
  background: var(--red);
}

.family-card.integral::before {
  background: var(--green);
}

.family-card p {
  font-size: 0.96rem;
}

.family-card h3::after {
  display: block;
  margin-top: 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  content: "Ver productos";
}

.family-card.integral h3::after {
  color: var(--green);
}

.catalog {
  background:
    linear-gradient(rgba(214, 17, 40, 0.92), rgba(214, 17, 40, 0.92)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%);
}

.catalog h2,
.catalog .eyebrow,
.catalog p {
  color: var(--white);
}

.catalog-head {
  margin-bottom: 34px;
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: var(--white);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(80, 38, 27, 0.16);
}

.product-card:focus-visible {
  outline: 3px solid rgba(214, 17, 40, 0.38);
  outline-offset: 4px;
}

.product-image {
  overflow: hidden;
  height: 260px;
  padding: 14px;
  background: #fff4ed;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 320ms ease, filter 320ms ease;
}

.product-card:hover .product-image img,
.product-card:focus-within .product-image img {
  filter: saturate(1.09) contrast(1.04);
  transform: scale(1.075) rotate(-0.6deg);
}

.product-card .product-description {
  margin: 0 0 18px;
  padding: 0;
  color: #5c382d;
  font-weight: 650;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 11px;
  color: var(--red);
  border-radius: 999px;
  background: #fff0ed;
  font-size: 0.76rem;
  font-weight: 900;
}

.product-tag.integral {
  color: var(--green);
  background: rgba(20, 138, 84, 0.11);
}

.product-card h3 {
  color: #3b2018;
}

.product-card p {
  font-size: 0.96rem;
}

.product-meta {
  margin-top: auto;
  margin-bottom: 18px;
  color: #7b4b32;
  font-weight: 900;
}

.product-card .btn {
  width: 100%;
}

.identity-card {
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.identity-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 26px;
  transition: transform 320ms ease, filter 320ms ease, box-shadow 320ms ease;
}

.identity-card img:hover {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
  box-shadow: 0 18px 42px rgba(80, 38, 27, 0.18);
}

.contact {
  background: #fff4ed;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius);
}

.contact-card a {
  padding: 16px 18px;
  color: #4d241c;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  font-weight: 900;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--white);
  background: var(--red);
}

.site-footer {
  padding: 36px 0;
  color: var(--white);
  background: #2b1713;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner img {
  width: 168px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-inner p {
  margin: 0;
  color: #f8e9df;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--white);
  background: var(--red);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 18px;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.58);
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  width: min(900px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-card > img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  padding: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, #fff8f2, #fff0e5);
}

.modal-content {
  padding: 38px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: var(--red);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.modal-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.modal-data div {
  padding: 14px;
  border-radius: 16px;
  background: #fff4ed;
}

.modal-data dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.modal-data dd {
  margin: 6px 0 0;
  color: #3b2018;
  font-weight: 900;
}

.modal ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .contact-grid,
  .identity-card,
  .catalog-head,
  .modal-card {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 520px;
  }

  .value-grid,
  .families-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-card > img {
    min-height: 300px;
    max-height: 360px;
  }
}

@media (max-width: 700px) {
  section[id] {
    scroll-margin-top: 104px;
  }

  .section-pad {
    padding: 58px 0;
  }

  .site-header {
    min-height: 74px;
  }

  .brand img {
    width: 136px;
  }

  .footer-inner img {
    width: 136px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--red);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    gap: 32px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    min-height: 430px;
    border-radius: 30px;
  }

  .hero-product {
    border-width: 7px;
    border-radius: 20px;
  }

  .hero-product-a {
    top: 26px;
    left: 18px;
    width: 62%;
    height: 292px;
  }

  .hero-product-b {
    right: 16px;
    bottom: 36px;
    width: 62%;
    height: 205px;
  }

  .value-grid,
  .families-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 300px;
  }

  .identity-card,
  .modal-content {
    padding: 24px;
  }

  .modal-data {
    grid-template-columns: 1fr;
  }
}
