/* ---- Variables ---- */
:root {
  --bronze: #8e6c40;
  --brown: #563611;
  --taupe: #72614b;
  --sand: #c5a67b;
  --paper: #fffefa;
  --gutter: clamp(1.25rem, 6vw, 7rem);
  --header-h: 114px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: calc(-1 * var(--header-h)) 0 0;
  background: var(--paper);
  color: var(--brown);
  font: 400 1rem/1.7 Raleway, Arial, sans-serif;
}

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

h1, h2, h3 { font-weight: 500; line-height: 1.12; }

h2 {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

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

button { font: inherit; }

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

[hidden] { display: none !important; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 5px;
}

/* ---- Skip link ---- */
.skip { position: fixed; top: -8rem; left: 1rem; z-index: 10; background: white; padding: 1rem; }
.skip:focus { top: 1rem; }

/* ---- Header / navegación ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
  background: rgba(255, 254, 250, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header nav a {
  font-size: 1rem;
  color: #000000;
  padding: 0.5rem 0;
  transition: color 0.18s;
}
.header nav a:hover {
  color: var(--brown);
}

.brand { display: flex; align-items: center; gap: 1.1rem;}
.brand-icon { height: 57px; width: auto; }
.brand-type { width: 130px; height: auto; }

.header nav {
  position: relative;
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
}
.header nav .nav-contact {
  order: 2;
  margin-left: auto;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--bronze);
  border-radius: 40px;
}
.header nav .nav-contact:hover {
  color: var(--paper);
  background: var(--bronze);
}
.nav-main-links {
  order: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.menu-toggle {
  padding: 0.5rem 1rem;
  background: none;
  color: var(--brown);
  border: 1px solid var(--sand);
  border-radius: 30px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 690px;
  min-height: clamp(620px, 53vw, 850px);
  margin: 0;
  color: white;
  background: var(--brown);
  isolation: isolate;
}

.hero-visual { position: absolute; inset: 0; z-index: -2; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, transparent 85%, var(--paper) 100%),
    linear-gradient(50deg, rgba(40, 22, 7, 0.55), transparent 80%)
}

.hero-copy { padding: calc(var(--header-h) + 5rem) calc(var(--gutter) - 1.1rem) 8rem; }

.hero h1 {
  font-weight: 400;
  font-size: clamp(3.4rem, 5.8vw, 6.1rem);
  line-height: 1.09;
  letter-spacing: -0.055em;
  margin-bottom: 2rem;
}

.hero-description { font-size: 1.05rem; line-height: 1.6; margin-bottom: 2.4rem; }
.hero-copy .button + .button { margin-left: 1rem; }

/* ---- Botones ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 35px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 50px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.light { color: var(--brown); background: var(--paper); }
.light:hover { background: var(--bronze); color: var(--paper) }
.dark { background: var(--brown); color: white; }
.dark:hover { background: var(--taupe); }

/* ---- Secciones y etiquetas ---- */
.section { padding: 7rem var(--gutter); }
.section-label { font-size: 0.9rem; color: var(--taupe); margin-bottom: 1.25rem; }

/* ---- Nosotros ---- */
.about { display: grid; grid-template-columns: 1fr 2.1fr; gap: 5rem; align-items: center; }

.about-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
  text-align: center;
}

.about-signature img { width: 135px; height: auto; }
.about-signature p { color: var(--taupe); font-size: 0.9rem; margin: 0; }

.about-content { max-width: 800px; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; }
.about-columns p { margin-bottom: 0; color: var(--taupe); max-width: 40ch; }
.about-columns p + p { border-left: 1px solid var(--sand); padding-left: 2.2rem; }

/* ---- Productos ---- */
.products.section {
  position: relative;
  display: block;
  padding: 0 var(--gutter);
  background: #eee6d9;
}

.product-stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 7rem);
}

.product-heading {
  position: relative;
  z-index: 2;
  min-height: 0;
  height: 100%;
  padding-top: 1rem;
  padding-bottom: 2rem;
  background: #eee6d9;
  align-content: center;
}

.product-heading h2 { margin: 0; }
.product-heading h2 + p {color: var(--taupe); margin: 0.4rem; }

.product-list {
  width: min(100%, 760px);
  margin: 0 auto;
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.product-track {
  height: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.product {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  padding: 2rem 0;
  align-content: center;
}

.product-inner {
  width: min(100%, 500px);
  height: 78%;
  margin: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(142, 108, 64, 0.24);
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(86, 54, 17, 0.22);
}

.product img {
  width: min(42vw, 280px);
  height: min(42vw, 280px) !important;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 0.45rem;
  transform: rotate(90deg);
}

.product h3 { font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 0.35rem; }
.product p { color: var(--taupe); margin: 0; }
.product > div { flex: 1; }

/* ---- Acordeón <details> ---- */
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  font-size: 0.9rem;
}

summary::-webkit-details-marker { display: none; }
summary span { font-size: 1.7rem; font-weight: 400; }
details[open] summary span { transform: rotate(45deg); }

/* ---- Contacto ---- */
.contact {
  background: var(--brown);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.contact .section-label { color: var(--sand); }
.contact h2 { margin-bottom: 0.4rem; }
.contact h2 + p { margin-top: 0; }
.contact p { color: #e3d7c6; margin-bottom: 0; }

.contact-info { align-self: center; padding-left: 2.5rem; border-left: 1px solid #c5a67b66; }
.contact-info h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-info address { font-style: normal; color: #e3d7c6; margin-bottom: 1.6rem; }

.contact .dark { border-color: var(--sand); background: transparent; }
.contact .dark:hover { background: var(--taupe); }

.social-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-links .social-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ---- Footer ---- */
footer {
  padding: 2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

footer img { width: 75px; height: auto; }
footer p { font-size: 1rem; margin: 0; color: var(--taupe); }
footer a, footer small { font-size: 1rem; }

/* ---- Media queries ---- */
@media (min-width: 1800px) {
  body { max-width: 1920px; margin: auto; }
}

@media (max-width: 1000px) {
  .header nav { gap: 1.2rem; }
  .header nav .nav-contact { margin: 0; }
  .about { gap: 3rem; grid-template-columns: 1fr 2.6fr; }
  .product-list { gap: 1.7rem; }
  .hero { min-height: 650px; }
  .hero-copy { padding-top: 4.5rem; }
  .hero h1 { font-size: 4rem; }
}

@media (max-width: 720px) {
  :root { --header-h: 132px; }
  .header { min-height: 0; padding: 1rem var(--gutter); flex-wrap: wrap; gap: 1rem; }
  .brand-icon { height: 40px; }
  .brand-type { width: 100px; }
  .header nav {
    position: static;
    flex: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }
  .header nav .nav-contact {
    order: 2;
    margin-left: 0;
    border: 0;
    padding: 0.5rem 0;
  }
  .nav-main-links {
    order: 1;
    flex: none;
    display: contents;
  }

  .hero { min-height: 720px; }
  .hero-copy { padding: calc(var(--header-h) + 1rem) 1.3rem; }
  .hero h1 { font-size: clamp(2.9rem, 9vw, 4rem); }
  .hero-description { font-size: 1rem; }
  .hero-visual img { object-position: 70% center; }
  .hero:after {
    background:
      linear-gradient(to bottom, transparent 55%, var(--paper) 100%),
      linear-gradient(180deg, rgba(40, 22, 7, 0.65), rgba(40, 22, 7, 0.1) 70%);
  }
  .section { padding: 4rem var(--gutter); }

  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-signature { flex-direction: row; text-align: left; gap: 2rem; }
  .about-signature img { width: 85px; }
  .about-columns { grid-template-columns: 1fr; gap: 1.2rem; }
  .about-columns p + p { border-left: 0; padding-left: 0; }
  .about-columns p { max-width: 60ch; }

  .products.section { padding: 0 var(--gutter); }
  .product-stage { display: block; }
  .product-heading { height: auto; padding-top: 2.5rem; }
  .product-heading h2 + p { max-width: 50ch; }
  .product-list { width: 100%; }
  .product { padding: 1rem 0; }
  .product-inner { width: 100%; height: 82%; padding: 1rem; }
  .product img { width: min(58vw, 210px); height: min(58vw, 210px) !important; }
  .product h3 { font-size: 1.65rem; }

  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info { border-left: 0; border-top: 1px solid #c5a67b66; padding: 2rem 0 0; }
  .contact h2 { font-size: clamp(2rem, 6.5vw, 3rem); }

  footer { display: grid; grid-template-columns: auto 1fr; gap: 2rem; }
  footer p, footer small { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---- Preguntas frecuentes ---- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.faq-intro > p { color: var(--taupe); max-width: 32ch; }
.faq-intro h2 { margin-bottom: 0.4rem; }
.faq-intro h2 + p { margin-top: 0; }

.faq-item { border-top: 1px solid var(--sand); }

.faq-item summary {
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.faq-item summary span { flex-shrink: 0; }
.faq-item > p { color: var(--taupe); padding: 0 2rem 1.5rem 0; margin: 0; max-width: 65ch; }

@media (max-width: 900px) {
  .faq { gap: 2.5rem; }
}

@media (max-width: 720px) {
  .faq { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-intro > p { max-width: 50ch; }
  .faq-item > p { padding-right: 0; }
}
