/* =================================================================
   TORENZA — Sistema de diseño
   Paleta: clay/terracota (acento), sand (arena), ink (grafito cálido)
   Tipografía: Fraunces (serif, titulares) + Inter (sans, cuerpo)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Color (con respaldo hex para navegadores/webviews que aún no soportan oklch()) */
  --background: #fefbf9;
  --background: oklch(99% .004 65);
  --foreground: #1b1410;
  --foreground: oklch(20% .014 55);
  --card: #fcf8f4;
  --card: oklch(98% .006 60);
  --muted: #f2ebe6;
  --muted: oklch(94.5% .01 60);
  --muted-foreground: #5f5650;
  --muted-foreground: oklch(46% .015 55);
  --border: #e1d9d3;
  --border: oklch(89% .012 55);

  --clay: #b85207;
  --clay: oklch(56% .15 48);
  --clay-deep: #7d2600;
  --clay-deep: oklch(40% .13 42);
  --clay-soft: #fce6d9;
  --clay-soft: oklch(94% .03 55);
  --ink: #1b1410;
  --ink: oklch(20% .014 55);
  --sand: #f7f1eb;
  --sand: oklch(96% .01 65);

  --radius: .125rem;

  /* Tipografía */
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Ritmo */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.08;
}
p { margin: 0; }
::selection { background: var(--clay); color: var(--sand); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 22ch; }
.section-lede {
  max-width: 46ch;
  color: var(--muted-foreground);
  font-size: 1.02rem;
  margin-top: 1rem;
}

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all .3s cubic-bezier(.16,1,.32,1);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary {
  background: var(--clay);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clay-deep);
  box-shadow: 0 10px 30px -10px var(--clay);
}
.btn-outline {
  border-color: currentColor;
  color: var(--foreground);
  background: transparent;
}
.btn-outline:hover { border-color: var(--clay); color: var(--clay); }
.btn-ghost-light {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(19,15,15,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .4s ease;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  color: #fff;
}
.brand-mark {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: .3em;
}
.brand-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
}
.main-nav { display: none; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .25s ease;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--clay); }
.main-nav a.active { border-color: var(--clay); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn-primary { display: none; }
.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: #fff;
  padding: .5rem;
}
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-actions .btn-primary { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Menú móvil */
.mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 49;
  background: var(--ink);
  padding: 2rem var(--gutter);
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
}
.mobile-nav a.active { color: var(--clay); }

body { padding-top: 72px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  margin-top: -72px;
  overflow: hidden;
  color: #fff;
  background: var(--ink); /* evita destello blanco mientras cargan las imágenes */
}

/* Carrusel de imágenes */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001); /* evita líneas de subpíxel en reposo */
  transform-origin: center center;
  will-change: transform;
}
.hero-slide.is-active img {
  animation: heroKenBurns 7s cubic-bezier(.25,.1,.25,1) forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
.hero-media-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(10,8,8,.88) 0%, rgba(10,8,8,.32) 48%, rgba(10,8,8,.5) 100%);
}

/* Puntos indicadores del carrusel */
.hero-dots {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.5rem, 4vw, 2.25rem);
  z-index: 2;
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  padding: 0;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.is-active { width: 22px; border-radius: 4px; background: #fff; }

.hero-content { position: relative; z-index: 2; padding-block: 7rem 4.5rem; width: 100%; }
.hero-eyebrow {
  color: rgba(255,255,255,.85);
  display: inline-block;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  max-width: 14ch;
  margin-bottom: 1.25rem;
}
.hero-sub {
  max-width: 40ch;
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; transform: scale(1); }
  .hero-slide { transition: opacity .5s linear; }
}

/* Franja de marquee (categorías desplazándose) */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--sand);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  padding: .9rem 2.5rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Simple página (encabezados internos) ---------- */
.page-head {
  padding-top: clamp(6.5rem, 12vw, 9.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 20ch; }
.page-head .lede { max-width: 52ch; color: var(--muted-foreground); margin-top: 1.1rem; font-size: 1.02rem; }

/* ---------- Grid de colecciones / catálogo ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
}
.product-card .thumb { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--muted); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.32,1); }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .badge {
  position: absolute; top: .9rem; left: .9rem;
  background: var(--ink); color: var(--sand);
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .65rem;
}
.product-card .index {
  position: absolute; top: .9rem; right: .9rem;
  color: #fff; font-family: var(--font-serif); font-size: 1.1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.product-card .thumb-cta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .75rem .9rem;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  color: #fff; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.product-card:hover .thumb-cta, .product-card:focus-visible .thumb-cta { opacity: 1; transform: none; }
.product-card .info { padding: 1.35rem 1.4rem 1.6rem; }
.product-card h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.product-card .spec {
  font-size: .78rem; color: var(--muted-foreground);
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.product-card .spec span:not(:last-child)::after { content: "·"; margin-left: .4rem; color: var(--border); }

/* ---------- Por qué Torenza (features) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 3rem; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .feature:nth-child(odd) { padding-right: 2.5rem; border-right: 1px solid var(--border); }
  .feature:nth-child(even) { padding-left: 2.5rem; }
}
.feature h3 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 500; margin-bottom: .5rem; }
.feature p { color: var(--muted-foreground); font-size: .95rem; }

/* ---------- Caso destacado / CTA banda ---------- */
.band {
  background: var(--ink);
  color: #fff;
}
.band-accent { background: var(--clay); color: #fff; }
.band-inner {
  display: flex; flex-direction: column; gap: 2rem;
  padding-block: 3.5rem;
}
@media (min-width: 900px) {
  .band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 24ch; }
.band .eyebrow { color: rgba(255,255,255,.65); }
.band-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Newsletter ---------- */
.newsletter { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--sand); }
.newsletter-inner {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding-block: 3rem;
}
@media (min-width: 860px) {
  .newsletter-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.newsletter h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 18ch; }
.newsletter form { display: flex; gap: .6rem; width: 100%; max-width: 380px; }
.newsletter input[type=email] {
  flex: 1;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-sans);
  font-size: .9rem;
  border-radius: var(--radius);
}
.newsletter .note { font-size: .8rem; color: var(--muted-foreground); margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-block: 4rem 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-grid .brand-mark { color: #fff; }
.footer-grid p { font-size: .88rem; margin-top: 1rem; max-width: 32ch; color: rgba(255,255,255,.55); }
.footer-col h4 {
  font-family: var(--font-sans); font-weight: 500; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.9);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; font-size: .88rem; }
.footer-col a:hover { color: var(--clay); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  font-size: .78rem; color: rgba(255,255,255,.5);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- Filtros catálogo ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.filter-group h4 {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-foreground); margin-bottom: .75rem; font-weight: 500;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  padding: .45rem .95rem;
  border: 1px solid var(--border);
  font-size: .78rem;
  border-radius: 999px;
  background: #fff;
  transition: all .2s ease;
}
.pill:hover { border-color: var(--clay); color: var(--clay); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalog-count { color: var(--muted-foreground); font-size: .95rem; margin-top: .75rem; }
.catalog-count strong { color: var(--foreground); }

/* ---------- Nosotros: stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 2.5rem; }
.stat-row .stat { text-align: left; }
.stat .num { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--clay); }
.stat .label { font-size: .82rem; color: var(--muted-foreground); margin-top: .3rem; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; margin-top: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col p + p { margin-top: 1.1rem; }
.two-col p { color: var(--muted-foreground); }

/* ---------- Proyectos ---------- */
.project-card { border: 1px solid var(--border); background: var(--card); }
.project-card .thumb { aspect-ratio: 5/4; overflow: hidden; background: var(--muted); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.32,1); }
.project-card:hover .thumb img { transform: scale(1.04); }
.project-card .info { padding: 1.3rem 1.4rem 1.5rem; }
.project-card .eyebrow { font-size: .68rem; }
.project-card h3 { font-size: 1.2rem; margin: .5rem 0 .35rem; }
.project-card .spec { font-size: .82rem; color: var(--muted-foreground); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.2fr .8fr; } }
.info-list { display: flex; flex-direction: column; gap: 1.75rem; }
.info-item { display: flex; gap: 1rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.info-item .ic {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--clay-soft); color: var(--clay);
  display: flex; align-items: center; justify-content: center;
}
.info-item h4 { font-size: .92rem; font-weight: 500; font-family: var(--font-sans); margin-bottom: .25rem; }
.info-item p { color: var(--muted-foreground); font-size: .9rem; }
.schedule-card { background: var(--ink); color: #fff; padding: 2rem; }
.schedule-card h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.schedule-row { display: flex; justify-content: space-between; padding-block: .65rem; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.schedule-row:last-of-type { border-bottom: none; }
.schedule-row span:first-child { color: rgba(255,255,255,.65); }

/* ---------- Formularios ---------- */
.form-card { background: var(--card); border: 1px solid var(--border); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-size: .78rem; font-weight: 500; letter-spacing: .04em; }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  background: #fff;
  padding: .8rem .9rem;
  font-family: var(--font-sans);
  font-size: .92rem;
  border-radius: var(--radius);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}
.field textarea { resize: vertical; min-height: 100px; }
.segmented { display: inline-flex; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.segmented button {
  padding: .7rem 1.4rem; background: transparent; border: none;
  font-size: .82rem; font-weight: 500; color: var(--muted-foreground);
}
.segmented button.active { background: var(--ink); color: #fff; }

.material-line {
  display: grid;
  grid-template-columns: 1fr 90px 1fr auto;
  gap: .6rem;
  align-items: end;
  margin-bottom: .9rem;
}
@media (max-width: 640px) { .material-line { grid-template-columns: 1fr 1fr; } }
.material-line .rm {
  border: 1px solid var(--border); background: #fff; height: 44px; width: 44px;
  display: flex; align-items: center; justify-content: center; color: var(--muted-foreground);
}
.material-line .rm:hover { color: var(--clay); border-color: var(--clay); }
.total-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 1rem; margin-top: .5rem; border-top: 1px solid var(--border);
  font-size: .95rem;
}
.total-line strong { font-family: var(--font-serif); font-size: 1.5rem; color: var(--clay); }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.alert {
  padding: .9rem 1.1rem; border-left: 3px solid var(--clay);
  background: var(--clay-soft); color: var(--clay-deep);
  font-size: .88rem; margin-bottom: 1.5rem;
}
.alert-success { border-color: #2f7a4f; background: #eaf5ee; color: #1f5c38; }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }

/* ---------- Modal de producto (vista rápida) ---------- */
.product-card { cursor: pointer; }
.product-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.product-modal[hidden] { display: none; }
.product-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(17,12,10,.6);
  backdrop-filter: blur(3px);
}
.product-modal-panel {
  position: relative;
  background: #fff;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
@media (min-width: 760px) {
  .product-modal-panel { grid-template-columns: 1.1fr 1fr; }
}
.product-modal-close {
  position: absolute; top: .85rem; right: .85rem; z-index: 2;
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.product-modal-media { position: relative; background: var(--muted); aspect-ratio: 1; }
.product-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-media .badge {
  position: absolute; top: .9rem; left: .9rem;
  background: var(--ink); color: var(--sand);
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .65rem;
}
.product-modal-body { padding: 1.75rem clamp(1.25rem, 3vw, 2rem); }
.product-modal-body h3 { font-size: 1.7rem; margin: .4rem 0 .6rem; }
.product-modal-body .spec { font-size: .85rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.pm-precio { font-family: var(--font-serif); font-size: 1.6rem; color: var(--clay); margin-bottom: 1rem; }
.pm-desc { color: var(--muted-foreground); font-size: .95rem; margin-bottom: 1.25rem; }
.pm-ficha-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: .4rem; }
.pm-ficha { font-size: .88rem; color: var(--muted-foreground); margin-bottom: 1.5rem; white-space: pre-line; }

/* =================================================================
   TORENZA — Refinamiento visual + animaciones
   (capa puramente estética/interactiva, no toca lógica ni estructura)
   ================================================================= */

/* ---------- Entrada del hero al cargar (sin JS) ---------- */
.hero-eyebrow, .hero-title, .hero-sub, .hero-cta {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 1s cubic-bezier(.16,1,.32,1) forwards;
}
.hero-eyebrow { animation-delay: .15s; }
.hero-title   { animation-delay: .32s; }
.hero-sub     { animation-delay: .5s; }
.hero-cta     { animation-delay: .68s; }
@keyframes heroFadeUp { to { opacity: 1; transform: none; } }

/* ---------- Revelado de secciones al hacer scroll ---------- */
[data-reveal],
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16,1,.32,1), transform .8s cubic-bezier(.16,1,.32,1);
}
[data-reveal].is-visible,
[data-reveal-group] > *.is-visible { opacity: 1; transform: none; }
[data-reveal-group] > *:nth-child(1) { transition-delay: .02s; }
[data-reveal-group] > *:nth-child(2) { transition-delay: .1s; }
[data-reveal-group] > *:nth-child(3) { transition-delay: .18s; }
[data-reveal-group] > *:nth-child(4) { transition-delay: .26s; }
[data-reveal-group] > *:nth-child(5) { transition-delay: .34s; }
[data-reveal-group] > *:nth-child(6) { transition-delay: .42s; }
[data-reveal-group] > *:nth-child(n+7) { transition-delay: .48s; }

/* ---------- Barra de progreso de lectura ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--clay), var(--clay-deep));
  z-index: 100; transition: width .12s linear; pointer-events: none;
}

/* ---------- Header: sombra sutil al bajar ---------- */
.site-header { transition: background .4s ease, box-shadow .4s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 30px -16px rgba(0,0,0,.45); }

/* ---------- Botones: barrido de color + micro-interacción ---------- */
.btn { position: relative; overflow: hidden; z-index: 0; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.16,1,.32,1);
}
.btn:active { transform: scale(.97); }
.btn-outline::before { background: var(--clay); }
.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline:hover { color: #fff; border-color: var(--clay); }
.btn-ghost-light::before { background: #fff; }
.btn-ghost-light:hover::before { transform: scaleX(1); }
.btn-ghost-light:hover { color: var(--ink); border-color: #fff; }

/* ---------- Tarjetas: elevación al pasar el cursor ---------- */
.product-card, .project-card {
  transition: transform .5s cubic-bezier(.16,1,.32,1), box-shadow .5s cubic-bezier(.16,1,.32,1), border-color .35s ease;
}
.product-card:hover, .project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 50px -26px rgba(27,20,16,.32);
  border-color: var(--clay-soft);
}
.product-card .thumb img, .project-card .thumb img {
  filter: saturate(.94);
  transition: transform .7s cubic-bezier(.16,1,.32,1), filter .5s ease;
}
.product-card:hover .thumb img, .project-card:hover .thumb img { filter: saturate(1.08); }

/* ---------- Etiquetas de producto: insignia + specs como chips ---------- */
.product-card .badge, .product-modal-media .badge {
  border-radius: 999px;
  background: rgba(27,20,16,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16);
}
.product-card .spec { gap: .45rem; }
.product-card .spec span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .72rem;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.product-card .spec span:not(:last-child)::after { content: none; }
.product-card .spec span:first-child {
  background: var(--clay-soft);
  border-color: var(--clay-soft);
  color: var(--clay-deep);
  font-weight: 500;
}
.product-card:hover .spec span { border-color: var(--clay-soft); }

/* ---------- Franja de categorías: bordes difuminados ---------- */
.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ---------- Botón flotante de WhatsApp: pulso ---------- */
.whatsapp-float::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid #25D366; opacity: .55;
  animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(.9); opacity: .55; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Modal de producto: entrada con fundido ---------- */
.product-modal-backdrop { opacity: 0; transition: opacity .35s ease; }
.product-modal-panel {
  opacity: 0; transform: translateY(26px) scale(.97);
  transition: opacity .4s cubic-bezier(.16,1,.32,1), transform .4s cubic-bezier(.16,1,.32,1);
}
.product-modal.is-open .product-modal-backdrop { opacity: 1; }
.product-modal.is-open .product-modal-panel { opacity: 1; transform: none; }

/* ---------- Números animados (Nosotros) ---------- */
.stat .num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Ficha de producto (producto.php)
   ============================================================ */
.breadcrumb { font-size: .8rem; color: var(--muted-foreground); margin-bottom: 1.75rem; }
.breadcrumb a { color: var(--muted-foreground); }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb span { color: var(--ink); }

.pd-layout { display: grid; grid-template-columns: 1fr; gap: 2.75rem; }
@media (min-width: 960px) { .pd-layout { grid-template-columns: 1.15fr 1fr; } }

.pd-main { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--muted); border: 1px solid var(--border); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.pd-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--ink); color: var(--sand); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .65rem;
}
.pd-tag {
  position: absolute; bottom: 1rem; left: 1rem; z-index: 2;
  background: rgba(19,15,15,.78); color: #fff; backdrop-filter: blur(6px);
  padding: .55rem .9rem; font-size: .78rem;
}

.pd-thumbs { display: flex; gap: .65rem; margin-top: .85rem; flex-wrap: wrap; }
.pd-thumbs button {
  width: 76px; height: 76px; padding: 0; overflow: hidden;
  border: 2px solid var(--border); background: var(--muted); cursor: pointer;
}
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumbs button.active { border-color: var(--clay); }

.pd-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: .5rem 0 .9rem; }
.pd-spec { font-size: .88rem; color: var(--muted-foreground); display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pd-spec span:not(:last-child)::after { content: "·"; margin-left: .5rem; color: var(--border); }
.pd-precio { font-family: var(--font-serif); font-size: 1.9rem; color: var(--clay); margin-bottom: 1.1rem; }
.pd-desc { color: var(--muted-foreground); font-size: .98rem; line-height: 1.65; margin-bottom: 1.4rem; }
.pd-ficha { padding: 1rem 1.15rem; background: var(--muted); border-left: 2px solid var(--clay); margin-bottom: 1.6rem; font-size: .9rem; color: var(--foreground); }
.pd-actions { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.pd-note { font-size: .78rem; color: var(--muted-foreground); border-top: 1px solid var(--border); padding-top: 1.1rem; }

@media (max-width: 720px) {
  .pd-actions { flex-direction: column; }
}
