/* =========================================================
   PÉRGOLAS MONTERREY — DESIGN SYSTEM
   Tokens, base, layout, components. Mobile-first, sin frameworks.
   ========================================================= */

:root {
  /* Color */
  --ink: #16180f;
  --ink-soft: #3d4234;
  --paper: #faf7ef;
  --paper-alt: #f0ead9;
  --paper-deep: #e7dfc9;
  --line: rgba(22, 24, 15, 0.12);
  --line-light: rgba(250, 247, 239, 0.16);

  --accent: #3f5e44;
  --accent-dark: #253d29;
  --accent-soft: #d9e3d2;
  --terracota: #c1602c;
  --terracota-dark: #9c4a20;
  --sun: #e2ac3f;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii & shadow */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -25px rgba(22, 24, 15, 0.35);
  --shadow-hard: 0 30px 60px -20px rgba(22, 24, 15, 0.45);

  --wrap: 1220px;
}

/* =========================== RESET =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.wrap--narrow { max-width: 860px; }

.text-accent { color: var(--accent); font-style: italic; }

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--terracota);
  color: var(--paper);
  box-shadow: 0 14px 30px -12px rgba(193, 96, 44, 0.55);
}
.btn-primary:hover { background: var(--terracota-dark); }

.btn-outline {
  border-color: currentColor;
  background: transparent;
}
.btn-outline:hover { background: rgba(22, 24, 15, 0.06); }

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--paper-alt); }

.btn-whatsapp {
  background: var(--accent);
  color: var(--paper);
}
.btn-whatsapp:hover { background: var(--accent-dark); }

/* =========================== HEADER =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark { color: var(--accent); }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-text em { color: var(--terracota); font-style: normal; }

.main-nav {
  display: none;
  align-items: center;
  gap: 1.9rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a { position: relative; padding-block: 0.3rem; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--terracota);
  transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }

.header-cta { display: none; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav panel */
@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    inset: 65px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.1rem;
    font-size: 1.15rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav .btn { margin-top: 0.5rem; }
}

/* =========================== HERO =========================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 5rem;
  background: linear-gradient(160deg, #1b1d13 0%, #262a1b 55%, #2f3524 100%);
  color: var(--paper);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero.has-video .hero-video { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(
    115deg,
    rgba(15, 17, 10, 0.92) 0%,
    rgba(15, 17, 10, 0.74) 32%,
    rgba(15, 17, 10, 0.4) 58%,
    rgba(15, 17, 10, 0.1) 85%
  );
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  transition: opacity 0.6s ease;
}
.hero.has-video .hero-blob { opacity: 0.28; }
.hero-blob--a {
  width: 480px; height: 480px;
  background: var(--accent-soft);
  top: -180px; right: -140px;
}
.hero-blob--b {
  width: 360px; height: 360px;
  background: rgba(193, 96, 44, 0.28);
  bottom: -160px; left: -120px;
}
.hero-slats {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(250,247,239,0.035) 0px,
    rgba(250,247,239,0.035) 2px,
    transparent 2px,
    transparent 46px
  );
  mix-blend-mode: overlay;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section--dark .eyebrow,
.section-head--light .eyebrow,
.hero .eyebrow { color: var(--sun); }

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  max-width: 16ch;
  color: var(--paper);
}
.hero-title .text-accent { color: #b9d6b4; }
.hero-sub {
  margin-top: 1.5rem;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(250, 247, 239, 0.82);
}
.hero-sub strong { color: var(--paper); }
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero .btn-outline {
  border-color: rgba(250, 247, 239, 0.55);
  color: var(--paper);
}
.hero .btn-outline:hover { background: rgba(250, 247, 239, 0.12); }
.hero-trust {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.2rem;
  max-width: 620px;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 247, 239, 0.22);
}
.hero-trust li { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--paper); }
.hero-trust span { font-size: 0.85rem; color: rgba(250, 247, 239, 0.7); }

@media (min-width: 720px) {
  .hero-trust { grid-template-columns: repeat(4, 1fr); }
}

/* =========================== SECTIONS (generic) =========================== */
.section { padding-block: 4.5rem; }
.section--alt { background: var(--paper-alt); }
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p { color: rgba(250, 247, 239, 0.78); }

.section-head { max-width: 700px; margin-bottom: 3rem; }
.section-head--light .section-lead { color: rgba(250, 247, 239, 0.78); }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* =========================== FEATURE GRID (Qué es) =========================== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.feature-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================== REASON LIST (Por qué) =========================== */
.reason-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.reason-list li {
  display: flex;
  gap: 1.5rem;
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--line-light);
}
.reason-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sun);
  min-width: 3ch;
}
.reason-list h3 { color: var(--paper); font-size: 1.2rem; margin-bottom: 0.4rem; }
.reason-list p { color: rgba(250, 247, 239, 0.75); max-width: 60ch; }

@media (min-width: 860px) {
  .reason-list { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .reason-list li:nth-last-child(-n+1) { border-bottom: 1px solid var(--line-light); }
}

/* =========================== APLICACIONES =========================== */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.app-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.app-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.app-card-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}
.app-card:hover .app-card-photo { transform: scale(1.05); }
.app-card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.app-card.has-photo::before { opacity: 0.35; }
.app-card.has-photo::after { opacity: 1; }
.app-card h3 { color: var(--paper); font-size: 1.3rem; margin-bottom: 0.5rem; }
.app-card p { color: rgba(250, 247, 239, 0.88); font-size: 0.92rem; max-width: 34ch; }

.app-card--a::before { background: linear-gradient(150deg, #3f5e44, #253d29); }
.app-card--b::before { background: linear-gradient(150deg, #c1602c, #8a3e19); }
.app-card--c::before { background: linear-gradient(150deg, #4a4530, #2a2717); }
.app-card--d::before { background: linear-gradient(150deg, #2c4a52, #17282c); }
.app-card--e::before { background: linear-gradient(150deg, #6a7a4a, #3d4530); }
.app-card--f::before { background: linear-gradient(150deg, #7a5230, #4a301a); }

@media (min-width: 640px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================== TECH GRID / PRODUCTO =========================== */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 3.5rem;
}
.tech-item {
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}
.tech-item h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
}
.tech-item p { color: var(--ink-soft); font-size: 0.95rem; }

@media (min-width: 720px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

.compare-wrap { margin-bottom: 3.5rem; }
.compare-title { font-size: 1.5rem; margin-bottom: 1.3rem; }
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper);
}
.compare-table { min-width: 640px; }
.compare-table th, .compare-table td {
  text-align: left;
  padding: 0.95rem 1.1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.compare-table tbody th {
  font-weight: 600;
  background: var(--paper-alt);
}
.compare-table td.ok { color: var(--accent-dark); font-weight: 600; }
.compare-table td.mid { color: var(--sun); font-weight: 600; }
.compare-table td.no { color: var(--terracota-dark); font-weight: 600; }
.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th { border-bottom: none; }

.split-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.split-text h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.split-text p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.2rem; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  border-left: 3px solid var(--sun);
  padding-left: 0.9rem;
}
.split-visual { display: flex; justify-content: center; }
.visual-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft), var(--paper-alt));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.swap-photo {
  cursor: zoom-in;
  transition: transform 0.4s ease;
}
.visual-frame .swap-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-frame:hover .swap-photo { transform: scale(1.05); }
.visual-slats {
  position: absolute;
  inset: 12%;
  background-image: repeating-linear-gradient(
    0deg,
    var(--accent) 0px,
    var(--accent) 10px,
    transparent 10px,
    transparent 26px
  );
  opacity: 0.85;
  border-radius: var(--radius-sm);
}

@media (min-width: 860px) {
  .split-block { grid-template-columns: 1.1fr 0.9fr; }
}

.accesorios { margin-bottom: 3rem; }
.accesorios h3 { font-size: 1.4rem; margin-bottom: 1.1rem; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
}
.cta-inline { text-align: center; margin-top: 1rem; }

/* =========================== CATÁLOGO OMBRÉA =========================== */
.catalog-section {
  background:
    radial-gradient(circle at 85% 8%, rgba(217, 227, 210, 0.72), transparent 24rem),
    var(--paper);
}
.catalog-head {
  display: grid;
  gap: 1.2rem 3rem;
}
.catalog-head .section-lead { margin: 0; }
.catalog-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(250, 247, 239, 0.82);
}
.catalog-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}
.catalog-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.catalog-dot--motor { background: var(--terracota); }
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.catalog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 16px 38px -32px rgba(22, 24, 15, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.catalog-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(22, 24, 15, 0.92), rgba(63, 94, 68, 0.82)),
    var(--accent-dark);
}
.catalog-media--light {
  background: linear-gradient(145deg, #dedbd0, #faf7ef);
}
.catalog-media--wide {
  background: linear-gradient(145deg, #253d29, #16180f);
}
.catalog-media::after {
  content: "";
  position: absolute;
  inset: auto -12% -48% 18%;
  height: 75%;
  border: 1px solid rgba(250, 247, 239, 0.18);
  transform: skewY(-8deg);
  pointer-events: none;
}
.catalog-photo {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.45s ease;
}
.catalog-card:hover .catalog-photo { transform: scale(1.035); }
.catalog-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 2rem;
  color: rgba(250, 247, 239, 0.72);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: center;
}
.catalog-media--light .catalog-placeholder { color: rgba(37, 61, 41, 0.72); }
.catalog-size {
  position: absolute;
  z-index: 3;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(250, 247, 239, 0.94);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(22, 24, 15, 0.16);
}
.catalog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}
.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}
.catalog-tags span {
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.catalog-tags .tag-manual {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.catalog-tags .tag-motor {
  background: rgba(193, 96, 44, 0.13);
  color: var(--terracota-dark);
}
.catalog-body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  line-height: 1.15;
}
.catalog-body > p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.catalog-specs {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.catalog-specs li {
  padding-top: 0.42rem;
  border-top: 1px solid var(--line);
}
.catalog-specs strong { color: var(--ink); }
.catalog-price {
  margin: 0.15rem 0 1.1rem;
  padding: 0.9rem 0;
  border-block: 1px solid var(--line);
}
.catalog-price-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.catalog-price > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.catalog-price strong {
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.1;
}
.catalog-price-before {
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-decoration: line-through;
}
.catalog-price small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}
.catalog-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}
.catalog-link span {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.catalog-link:hover span { transform: translateX(4px); }
.catalog-foot {
  display: grid;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
}
.catalog-foot p {
  max-width: 780px;
  color: rgba(250, 247, 239, 0.74);
  font-size: 0.9rem;
}
.catalog-foot .btn { justify-self: start; }

@media (min-width: 660px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .catalog-head {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
  }
  .catalog-foot { grid-template-columns: 1fr auto; }
  .catalog-foot .btn { justify-self: end; }
}
@media (min-width: 1120px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================== SERVICIOS =========================== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.service-card {
  padding: 2rem 1.7rem;
  border-radius: var(--radius-lg);
  background: var(--paper-alt);
}
.service-index {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}

.cta-banner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
}
.cta-banner h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: 0.4rem; }
.cta-banner p { color: rgba(250, 247, 239, 0.78); }

@media (min-width: 760px) {
  .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =========================== TESTIMONIOS =========================== */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.testi-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2rem;
}
.testi-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1.3rem;
}
.testi-card footer { display: flex; flex-direction: column; font-size: 0.88rem; }
.testi-card footer strong { color: var(--accent-dark); }
.testi-card footer span { color: var(--ink-soft); }

@media (min-width: 860px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================== MARCAS =========================== */
.brands { background: var(--paper-deep); }
.brands-inner { max-width: 760px; text-align: center; }
.brands-inner .section-lead { margin-inline: auto; }
.brand-badge {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  padding: 0.9rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

/* =========================== PROYECTOS =========================== */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.project-media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.project-media--a { background: linear-gradient(150deg, #3f5e44, #d9e3d2); }
.project-media--b { background: linear-gradient(150deg, #c1602c, #f0ead9); }
.project-media--c { background: linear-gradient(150deg, #253d29, #6a7a4a); }
.project-media .swap-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-media:hover .swap-photo { transform: scale(1.05); }
.project-body { padding: 1.6rem 1.7rem 1.9rem; }
.project-body h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.project-body p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.45rem; }
.project-body p strong { color: var(--ink); }

@media (min-width: 980px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================== DETALLES Y ACABADOS =========================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.detail-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 0;
  background: var(--paper-alt);
  cursor: zoom-in;
}
.detail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.detail-item:hover img { transform: scale(1.06); }
.detail-item:focus-visible { outline-offset: 3px; }

@media (min-width: 640px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (min-width: 980px) {
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-item:first-child { grid-column: span 2; aspect-ratio: 16 / 8; }
}

/* =========================== FAQ / ACCORDION =========================== */
.accordion { display: flex; flex-direction: column; gap: 0.8rem; }
.accordion-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
}
.accordion-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--terracota);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion-item[open] summary::after { transform: rotate(45deg); }
.accordion-item p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* =========================== SOBRE NOSOTROS =========================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent-dark); }
.about-stats span { font-size: 0.85rem; color: var(--ink-soft); }
.about-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--accent-soft), var(--paper-deep) 60%, var(--sun) 140%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.about-frame .swap-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-frame:hover .swap-photo { transform: scale(1.05); }

@media (min-width: 860px) {
  .about-inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* =========================== CONTACTO =========================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--sun);
  font-weight: 700;
}
.contact-list a, .contact-list span { font-size: 1.02rem; }

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row--split { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: var(--paper-alt);
  font-size: 0.96rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}
.form-row textarea { resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); text-align: center; }

@media (min-width: 560px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .contact-inner { grid-template-columns: 1fr 1.1fr; }
}

/* =========================== FOOTER =========================== */
.site-footer { background: var(--ink); color: var(--paper); padding-top: 3.5rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand p { color: rgba(250, 247, 239, 0.68); margin-top: 0.7rem; max-width: 40ch; font-size: 0.92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; font-size: 0.9rem; }
.footer-nav a { color: rgba(250, 247, 239, 0.82); }
.footer-nav a:hover { color: var(--sun); }
.footer-bottom { padding-block: 1.4rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(250, 247, 239, 0.55); }

@media (min-width: 760px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* =========================== WHATSAPP FLOAT =========================== */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================== LIGHTBOX =========================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 7, 0.94);
  padding: 3.5rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(92vw, 1400px);
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
}
.lightbox-caption {
  margin-top: 1.1rem;
  max-width: 60ch;
  text-align: center;
  color: rgba(250, 247, 239, 0.8);
  font-size: 0.9rem;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(250, 247, 239, 0.1);
  border: 1px solid rgba(250, 247, 239, 0.3);
  color: var(--paper);
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(250, 247, 239, 0.22); }
.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-close { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* =========================== MOTION PREFERENCE =========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .hero-video { display: none; }
}
