:root {
  --red: #8a0f0f;
  --red-dark: #5c0808;
  --clay: #b5532f;
  --clay-light: #d98b62;
  --sand: #f6efe6;
  --sand-2: #ede2d3;
  --ink: #2a1d18;
  --muted: #6b5a51;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 20, 10, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--red-dark); }
h3 { font-size: 1.25rem; }

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

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 600; color: var(--clay); margin: 0 0 .6rem;
}

.btn {
  display: inline-block; background: var(--red); color: var(--white);
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 2px solid var(--red); cursor: pointer;
  font: inherit; font-weight: 600; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-sm { padding: .5rem 1.1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--sand-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(115deg, var(--red-dark) 0%, var(--red) 45%, var(--clay) 100%);
  padding: clamp(4.5rem, 12vw, 8.5rem) 0;
}
.hero-bricks {
  position: absolute; inset: 0; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='88'%3E%3Cpath d='M0 1H120M0 45H120M1 0V44M61 44V88' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-size: 120px 88px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
.hero-inner { position: relative; max-width: 760px; margin-left: max(16px, calc((100% - 1120px) / 2)); }
.hero .eyebrow { color: #ffd2bd; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); opacity: .92; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .btn:not(.btn-ghost) { background: var(--white); color: var(--red); border-color: var(--white); }
.hero .btn:not(.btn-ghost):hover { background: var(--sand); }

/* Stats */
.stats { background: var(--white); border-bottom: 1px solid var(--sand-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.8rem 1rem; text-align: center; border-right: 1px solid var(--sand-2); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: "Fraunces", serif; font-size: 2rem; color: var(--red); }
.stat span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--sand-2); }
.section-intro { max-width: 640px; color: var(--muted); margin-bottom: 2.5rem; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.mv-card {
  background: var(--white); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 5px solid var(--red);
}
.mv-card:nth-child(2) { border-top-color: var(--clay); }
.mv-card h3 { color: var(--red); font-size: 1.5rem; }
.mv-card p { margin: 0; color: var(--muted); }

/* Sostenibilidad */
.section-green {
  background:
    radial-gradient(circle at 100% 0%, rgba(140, 170, 90, .18), transparent 45%),
    #eef1e4;
}
.section-green .eyebrow { color: #4f6b2c; }
.section-green h2 { color: #2f4419; }
.green-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: end; margin-bottom: 2.5rem; }
.green-head h2 { margin: 0; }
.green-lead { margin: 0; color: #4a5340; font-size: 1.05rem; }
.green-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.green-card {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(47, 68, 25, .08); border-top: 4px solid #6f8f3e;
}
.green-icon { width: 40px; height: 40px; color: #4f6b2c; background: #e3ead2; border-radius: 10px; padding: 8px; margin-bottom: 1rem; }
.green-card h3 { color: #2f4419; font-size: 1.12rem; }
.green-card p { margin: 0; color: #5b6152; font-size: .95rem; }
.green-band {
  margin-top: 1.8rem; padding: 1.3rem 1.6rem; border-radius: var(--radius);
  background: #2f4419; color: #e6eed6; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline;
}
.green-band strong { font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--white); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); transition: transform .25s;
}
.product:hover { transform: translateY(-4px); }
.product p { margin: 0; color: var(--muted); font-size: .95rem; }
.product-art {
  height: 130px; border-radius: 10px; margin-bottom: 1.2rem;
  background: radial-gradient(circle at 30% 20%, #fbe8dc, var(--sand-2));
  position: relative;
}
.product-art::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 150px; height: 70px; border-radius: 4px;
  background: linear-gradient(160deg, var(--clay-light), var(--clay) 60%, #93401f);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 8px 14px rgba(90,30,10,.25);
}
/* Foto real del producto: si existe, tapa el dibujo */
.product-art { overflow: hidden; }
.product-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2;
  background: #fff; padding: 8px;
}
.product-art:has(img) { height: 200px; }
/* perforaciones */
.product-art::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background-repeat: repeat; border-radius: 3px;
}
.art-b4::after { width: 120px; height: 44px; background-image: linear-gradient(90deg, #5a2410 0 32%, transparent 32% 34%, #5a2410 34% 66%, transparent 66% 68%, #5a2410 68%); opacity: .75; }
.art-b5::before { height: 84px; width: 140px; }
.art-b5::after { width: 112px; height: 60px; background:
  linear-gradient(transparent 46%, var(--clay) 46% 54%, transparent 54%),
  linear-gradient(90deg, #5a2410 0 32%, var(--clay) 32% 34%, #5a2410 34% 66%, var(--clay) 66% 68%, #5a2410 68%); opacity: .75; }
.art-tolete::before { height: 50px; width: 160px; }
.art-farol::after { width: 128px; height: 46px; background:
  linear-gradient(transparent 47%, var(--clay) 47% 53%, transparent 53%),
  linear-gradient(90deg, #5a2410 0 23%, var(--clay) 23% 26%, #5a2410 26% 49%, var(--clay) 49% 52%, #5a2410 52% 74%, var(--clay) 74% 77%, #5a2410 77%); opacity: .75; }
.art-estructural::after { width: 118px; height: 46px; background-image: radial-gradient(circle, #5a2410 6px, transparent 7px); background-size: 20px 23px; opacity: .8; }
.art-adoquin::before { width: 120px; height: 60px; transform: translate(-50%, -50%) skewX(-12deg); }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sand-2); border-radius: var(--radius); overflow: hidden; margin-top: 2rem; }
.value { background: var(--sand); padding: 2rem 1.6rem; }
.value-num { font-family: "Fraunces", serif; color: var(--clay); font-weight: 700; }
.value h3 { margin-top: .4rem; color: var(--red-dark); }
.value p { margin: 0; color: var(--muted); }

/* Location */
.section-dark { background: var(--ink); color: #f1e6dc; }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--clay-light); }
.loc-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); font-weight: 600; }
.section-dark .contact-list span { color: var(--clay-light); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--red); }
.map-link { display: inline-block; margin-top: .4rem; color: var(--clay-light); font-weight: 600; }
.section-dark .contact-list a.map-link:hover { color: var(--white); }

/* Form */
.quote-form {
  background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.quote-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid #d9cbbd; border-radius: 8px;
  background: #fffdfa; color: var(--ink); width: 100%;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--clay-light); border-color: var(--clay);
}

/* Contact cards */
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  background: var(--white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 5px solid var(--red);
}
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--clay); font-weight: 600; }
.contact-value {
  display: block; font-family: "Fraunces", serif; font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--red-dark); text-decoration: none; margin: .2rem 0 1rem; overflow-wrap: anywhere;
}
.contact-email { font-size: clamp(1rem, 4.4vw, 1.4rem); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-wa { background: #1fa855; border-color: #1fa855; }
.btn-wa:hover { background: #178a45; border-color: #178a45; }

/* Footer */
.site-footer { background: var(--red-dark); color: #f3d9cf; padding: 1.6rem 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-inner p { margin: 0; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .products, .values, .green-grid { grid-template-columns: 1fr 1fr; }
  .green-head { grid-template-columns: 1fr; gap: 1rem; }
  .loc-grid, .contact-grid, .mv-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--sand-2);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 480px; }
  .nav a { padding: 1rem 16px; border-top: 1px solid var(--sand-2); }
  .nav .btn { margin: .8rem 16px 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand img { height: 44px; }
}
@media (max-width: 560px) {
  .products, .values, .green-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--sand-2); padding: 1.2rem; }
  .stat:last-child { border-bottom: 0; }
  .mv-card, .contact-card { padding: 1.4rem; }
  .site-footer { padding-bottom: 88px; }
}
