/* ================================================================
   KYVERA DEMOS — Distinct layouts (no template repetition)
   ================================================================ */

/* Accessible reveal: visible by default */
html.js .d-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .d-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .d-reveal { opacity: 1; transform: none; transition: none; }
}

/* Hide generic template noise on distinct pages */
body.d-layout {
  overflow-x: clip;
}

body.d-layout .p-marquee,
body.d-layout .p-stat-row,
body.d-layout .p-highlights,
body.d-layout .p-photo-grid,
body.d-layout .p-kyvera-nudge { display: none !important; }

body.d-layout .p-section-head .p-kicker { display: none; }

/* ---- CLÍNICA: medicina estética / premium (estilo Pérez Baena) ---- */
.theme-clinica.d-layout {
  --bg: #ffffff;
  --ink: #3d6f6f;
  --ink-muted: #5a8585;
  --accent: #5a9a9a;
  --accent-dark: #4a8484;
  --accent-deep: #3d6f6f;
  --accent-text: #ffffff;
  --gold: #c9a87c;
  --font-brand: "Montserrat", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --surface: #ffffff;
  --line: #dce8e8;
  --section-alt: #f4f9f9;
  --footer-bg: #3d6f6f;
  --quote-bg: #4a8484;
}

.theme-clinica.d-layout { font-family: var(--font-body); color: var(--ink); background: var(--bg); }

.theme-clinica.d-layout .p-btn-main {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  padding: 0.9rem 1.85rem;
}

.theme-clinica.d-layout .p-btn-main:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.theme-clinica.d-layout .p-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.85);
}

.theme-clinica.d-layout .p-footer a { color: #fff; }

.theme-clinica.d-layout #ubicacion {
  background: var(--section-alt);
}

.theme-clinica.d-layout #ubicacion .p-h2 {
  font-family: var(--font-display);
  color: var(--accent-deep);
}

/* Header overlay */
.d-med-site-header {
  position: absolute;
  inset-inline: 0;
  top: 2.75rem;
  z-index: 60;
  padding: 0.75rem 0;
}

.d-med-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.d-med-logo {
  text-decoration: none;
  color: #fff;
}

.d-med-logo-name {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.1;
}

.d-med-logo-sub {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 0.2rem;
}

.d-med-nav {
  display: flex;
  align-items: center;
}

.d-med-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.d-med-nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.d-med-nav-list a:hover { opacity: 0.75; }

.d-med-nav .p-menu {
  display: none;
  margin-left: 0.5rem;
}

.d-med-nav .p-menu span { background: #fff; }

/* Hero */
.d-med-hero {
  position: relative;
  min-height: clamp(520px, 92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2f5858;
}

.d-med-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.d-med-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45, 80, 80, 0.35) 0%, rgba(45, 80, 80, 0.55) 100%);
  pointer-events: none;
}

.d-med-hero-curves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.d-med-hero-curves::before,
.d-med-hero-curves::after {
  content: "";
  position: absolute;
  border: clamp(28px, 4vw, 48px) solid rgba(90, 154, 154, 0.45);
  border-radius: 50%;
}

.d-med-hero-curves::before {
  width: min(110vw, 900px);
  height: min(110vw, 900px);
  left: -18%;
  top: 8%;
}

.d-med-hero-curves::after {
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  left: -8%;
  bottom: -35%;
  border-color: rgba(90, 154, 154, 0.3);
}

.d-med-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(6rem, 14vw, 9rem) 1.5rem 4rem;
  max-width: 820px;
}

.d-med-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.d-med-hero-content h1 {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 2rem;
}

.d-med-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.d-med-hero-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Intro band */
.d-med-intro {
  background: var(--accent-deep);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
}

.d-med-intro-inner {
  max-width: 780px;
  margin-inline: auto;
}

.d-med-intro h2 {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.d-med-intro p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75rem;
}

.d-med-ghost-btn {
  display: inline-flex;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.d-med-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Marquee */
.d-med-marquee {
  overflow: hidden;
  background: var(--accent-dark);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.d-med-marquee-track {
  display: flex;
  width: max-content;
  padding: 0.85rem 0;
  animation: d-med-marquee 32s linear infinite;
  white-space: nowrap;
}

.d-med-marquee-track span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding-inline: 0.15rem;
}

@keyframes d-med-marquee {
  to { transform: translateX(-50%); }
}

/* Service rows */
.d-med-services {
  background: #fff;
}

.d-med-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(420px, 50vw);
}

.d-med-service-row.is-reverse .d-med-service-media { order: 2; }

.d-med-service-media {
  overflow: hidden;
  min-height: 280px;
}

.d-med-service-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.d-med-service-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: #fff;
}

.d-med-service-copy h2 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.d-med-service-copy p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.d-med-more {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-decoration: none;
}

.d-med-more:hover { text-decoration: underline; }

/* Gift card */
.d-med-gift {
  background: var(--section-alt);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  text-align: center;
}

.d-med-gift-inner {
  max-width: 560px;
  margin-inline: auto;
}

.d-med-gift-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.d-med-gift h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
}

.d-med-gift p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Valuation CTA */
.d-med-valuation {
  background: var(--accent-deep);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  text-align: center;
}

.d-med-valuation-inner {
  max-width: 640px;
  margin-inline: auto;
}

.d-med-valuation-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.d-med-valuation h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.d-med-valuation p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* Team */
.d-med-team {
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: #fff;
}

.d-med-section-head {
  max-width: 560px;
  margin-bottom: 2rem;
}

.d-med-section-head.center {
  text-align: center;
  margin-inline: auto;
}

.d-med-section-head p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.d-med-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}

.d-med-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 640px;
  margin-inline: auto;
}

.d-med-team-card {
  text-align: center;
}

.d-med-team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.d-med-team-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 0.2rem;
}

.d-med-team-card p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.d-med-insurers {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.d-med-insurers span { color: var(--accent-deep); }

/* Testimonials */
.d-med-testimonials {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--section-alt);
  border-top: 1px solid var(--line);
}

.d-med-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.d-med-testimonials-grid article {
  background: #fff;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.d-med-testimonials-grid p {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
}

.d-med-testimonials-grid cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ---- REFORMAS: plataforma clara (estilo FacilReformas) ---- */
.theme-reformas.d-layout {
  --bg: #ffffff;
  --ink: #1a2b3c;
  --ink-muted: #5a6b7d;
  --accent: #f28c28;
  --accent-dark: #d97706;
  --accent-light: #fff4e8;
  --accent-text: #ffffff;
  --brand: #0d4a7a;
  --brand-dark: #083456;
  --font-brand: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --surface: #f5f8fb;
  --line: #dde5ee;
  --section-alt: #eef3f8;
  --footer-bg: #0d4a7a;
  --quote-bg: #eef3f8;
}

.theme-reformas.d-layout { font-family: var(--font-body); color: var(--ink); background: var(--bg); }

.theme-reformas.d-layout .p-btn-main {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
}

.theme-reformas.d-layout .p-btn-main:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.theme-reformas.d-layout .p-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.88);
}

.theme-reformas.d-layout .p-footer a { color: #fff; }

.theme-reformas.d-layout #ubicacion {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.theme-reformas.d-layout #ubicacion .p-h2 {
  color: var(--ink);
}

/* Topbar + header */
.d-fr-site-header {
  position: sticky;
  top: 2.75rem;
  z-index: 80;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.d-fr-topbar {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
}

.d-fr-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.d-fr-topbar-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.d-fr-topbar-link:hover { text-decoration: underline; }

.d-fr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.d-fr-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.d-fr-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 6px;
}

.d-fr-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.d-fr-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.d-fr-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.d-fr-nav-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.d-fr-nav-list a:hover { color: var(--brand); }

.d-fr-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  margin-left: 0.35rem;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
}

.d-fr-header-cta:hover { background: var(--accent-dark); }

.d-fr-nav .p-menu { display: none; margin-left: 0.25rem; }

/* Hero + configurator */
.d-fr-hero {
  background: linear-gradient(180deg, var(--section-alt) 0%, #fff 100%);
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.d-fr-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.d-fr-hero-tagline {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.d-fr-hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand);
  text-wrap: balance;
  margin-bottom: 1rem;
}

.d-fr-hero-lead {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 520px;
}

.d-fr-configurator {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 16px 48px rgba(13, 74, 122, 0.08);
}

.d-fr-configurator h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.d-fr-config-form {
  display: grid;
  gap: 1rem;
}

.d-fr-config-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.d-fr-config-form select,
.d-fr-config-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--ink);
}

.d-fr-config-form select:focus,
.d-fr-config-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-color: var(--brand);
}

.d-fr-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.d-fr-btn-primary:hover { background: var(--accent-dark); }

.d-fr-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--brand);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.d-fr-btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.d-fr-config-note {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.d-fr-config-alt {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
}

.d-fr-config-alt a {
  color: var(--brand);
  font-weight: 600;
}

.d-fr-hero-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Sections shared */
.d-fr-section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.d-fr-section-head.center {
  text-align: center;
  margin-inline: auto;
}

.d-fr-section-head p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.d-fr-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

/* Type cards */
.d-fr-types {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: #fff;
}

.d-fr-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.d-fr-type-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.d-fr-type-card:hover {
  box-shadow: 0 12px 36px rgba(13, 74, 122, 0.1);
  transform: translateY(-2px);
}

.d-fr-type-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.d-fr-type-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.d-fr-type-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.4rem;
}

.d-fr-type-body p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.d-fr-type-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

/* Budgeted grid */
.d-fr-budgeted {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--section-alt);
  border-block: 1px solid var(--line);
}

.d-fr-budgeted-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.d-fr-budget-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.d-fr-budget-item:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(13, 74, 122, 0.08);
}

.d-fr-budget-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.d-fr-budget-item span {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Process steps */
.d-fr-process {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: #fff;
}

.d-fr-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.d-fr-step {
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-top: 3px solid var(--accent);
}

.d-fr-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.d-fr-step h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.45rem;
}

.d-fr-step p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Before/after */
.d-fr-ba-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--brand);
}

.d-fr-ba-strip figure { margin: 0; position: relative; }

.d-fr-ba-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.d-fr-ba-strip figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 4px;
}

/* Advantages */
.d-fr-advantages {
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: var(--section-alt);
}

.d-fr-advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.d-fr-advantage {
  background: #fff;
  padding: 1.35rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.d-fr-advantage-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.d-fr-advantage h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.4rem;
}

.d-fr-advantage p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Stats */
.d-fr-stats {
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: var(--brand);
  color: #fff;
}

.d-fr-stats .d-fr-section-title { color: #fff; }
.d-fr-stats .d-fr-section-head p { color: rgba(255, 255, 255, 0.8); }

.d-fr-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.d-fr-stat {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.d-fr-stat strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.d-fr-stat span {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* Testimonials */
.d-fr-testimonials {
  padding: clamp(3rem, 6vw, 4rem) 0;
  background: #fff;
}

.d-fr-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.d-fr-testimonials-grid article {
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.d-fr-testimonials-grid p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.d-fr-testimonials-grid cite {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Advisor CTA */
.d-fr-advisor {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--accent-light);
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.d-fr-advisor-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.d-fr-advisor-inner p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  max-width: 480px;
}

.d-fr-advisor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- BELLEZA: fashion editorial ---- */
.theme-belleza.d-layout {
  --bg: #ffffff;
  --ink: #2c1810;
  --ink-muted: #5c4a42;
  --accent: #8b2942;
  --accent-text: #fff;
  --font-brand: "Bodoni Moda", Georgia, serif;
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --surface: #fafafa;
  --line: #e5ddd8;
  --section-alt: #f7f2ef;
  --footer-bg: #2c1810;
  --quote-bg: #f3ece6;
}

.theme-belleza.d-layout { font-family: var(--font-body); }

.d-hero-beauty {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: clamp(560px, 90vh, 820px);
  background: var(--bg);
}

.d-hero-beauty-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem);
}

.d-hero-beauty-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-style: italic;
  margin-bottom: 1rem;
}

.d-hero-beauty-stack {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem);
}

.d-hero-beauty-stack img {
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(44, 24, 16, 0.15);
}

.d-hero-beauty-stack .img-a {
  width: 72%;
  aspect-ratio: 3/4;
  margin-left: auto;
}

.d-hero-beauty-stack .img-b {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 48%;
  aspect-ratio: 4/5;
  border: 6px solid var(--bg);
}

.d-menu-elegant {
  max-width: 560px;
}

.d-menu-elegant li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.d-menu-elegant li span:first-child {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.d-menu-elegant li span:last-child {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.d-mood-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}

.d-mood-strip img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

/* ---- COMERCIO: ultramarinos de barrio ---- */
.theme-comercio.d-layout {
  --bg: #fffdfa;
  --ink: #2a1408;
  --ink-muted: #6b4e3a;
  --accent: #c2410c;
  --accent-text: #fff;
  --accent-dark: #3d1a0a;
  --font-brand: "Fraunces", Georgia, serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --surface: #ffffff;
  --line: #e8d5c4;
  --section-alt: #f7efe6;
  --footer-bg: #2a1408;
  --quote-bg: #f7efe6;
  --market-green: #2d5a3d;
}

.theme-comercio.d-layout { font-family: var(--font-body); }

.theme-comercio.d-layout .p-btn-main {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.theme-comercio.d-layout .p-btn-ghost {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--ink);
}

.theme-comercio.d-layout .p-btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: var(--accent);
}

.d-shop-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.d-shop-section-head {
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.d-shop-section-head.center {
  text-align: center;
  margin-inline: auto;
}

.d-shop-section-head .d-section-lead { margin-top: 0.5rem; }

/* Hero */
.d-shop-hero {
  background: var(--section-alt);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.d-shop-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 4vw, 2.5rem);
}

.d-shop-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--market-green);
  background: color-mix(in srgb, var(--market-green) 10%, transparent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.d-shop-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
  margin-bottom: 1rem;
}

.d-shop-hero-copy h1 em {
  font-style: italic;
  color: var(--accent);
}

.d-shop-lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 40ch;
  text-wrap: pretty;
}

.d-shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.d-shop-since {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.d-shop-hero-visual {
  position: relative;
  min-height: clamp(340px, 45vw, 480px);
}

.d-shop-hero-main {
  margin: 0;
  width: 72%;
  margin-left: auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(42, 20, 8, 0.15);
}

.d-shop-hero-main img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.d-shop-hero-side {
  position: absolute;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(42, 20, 8, 0.12);
  border: 4px solid var(--section-alt);
}

.d-shop-hero-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.d-shop-hero-side-a {
  width: 38%;
  left: 0;
  top: 8%;
  aspect-ratio: 4/5;
}

.d-shop-hero-side-b {
  width: 32%;
  left: 12%;
  bottom: 0;
  aspect-ratio: 1/1;
}

.d-shop-cred-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}

.d-shop-stat {
  padding: 1.25rem 0.75rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.d-shop-stat:last-child { border-right: none; }

.d-shop-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.d-shop-stat span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Deals */
.d-shop-deals-section {
  background: var(--accent-dark);
  color: #fff;
}

.d-shop-deals-section .d-shop-eyebrow { color: color-mix(in srgb, #fff 70%, var(--accent)); }
.d-shop-deals-section .d-section-title { color: #fff; }
.d-shop-deals-section .d-section-lead { color: color-mix(in srgb, #fff 75%, transparent); }

.d-shop-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.d-shop-deal {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--accent-dark) 92%, #000);
}

.d-shop-deal-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.d-shop-deal h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #fff;
}

.d-shop-deal-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.d-shop-deal p:last-child {
  font-size: 0.875rem;
  color: color-mix(in srgb, #fff 72%, transparent);
  line-height: 1.55;
}

/* Aisles / categories */
.d-shop-aisles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.d-shop-aisle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.d-shop-aisle:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(42, 20, 8, 0.08);
}

.d-shop-aisle-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.d-shop-aisle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.d-shop-aisle:hover .d-shop-aisle-img img {
  transform: scale(1.05);
}

.d-shop-aisle-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.d-shop-aisle-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.d-shop-aisle-body p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Founder */
.d-shop-founder {
  background: var(--accent);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.d-shop-founder-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.d-shop-founder-photo {
  width: clamp(120px, 18vw, 160px);
  flex-shrink: 0;
}

.d-shop-founder-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.d-shop-founder blockquote {
  margin: 0;
}

.d-shop-founder blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.d-shop-founder footer {
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
}

.d-shop-founder footer span {
  display: block;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 0.15rem;
}

/* Order steps */
.d-shop-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: shop-step;
}

.d-shop-steps li {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.d-shop-steps li span {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.d-shop-steps h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.d-shop-steps p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.d-shop-steps-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Gallery strip */
.d-shop-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3px;
  background: var(--line);
  min-height: 220px;
}

.d-shop-gallery img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

/* Testimonials */
.d-shop-voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.d-shop-voices article {
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.d-shop-voice-featured {
  grid-column: 1 / -1;
  background: var(--section-alt);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  padding: 2rem 1.75rem !important;
}

.d-shop-voices p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.d-shop-voice-featured p {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
}

.d-shop-voices cite {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* FAQ */
.d-shop-faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.d-shop-faq-list {
  border-top: 1px solid var(--line);
}

.d-shop-faq-item {
  border-bottom: 1px solid var(--line);
}

.d-shop-faq-item summary {
  padding: 1.2rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  align-items: center;
}

.d-shop-faq-item summary::-webkit-details-marker { display: none; }

.d-shop-faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.d-shop-faq-item[open] summary::after { content: "−"; }

.d-shop-faq-item p {
  padding: 0 0 1.2rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ---- Tienda online: catálogo, cesta, checkout ---- */
.d-shop-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-right: 0.65rem;
}

.d-shop-cart-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.12);
}

.d-shop-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.d-shop-cart-count[hidden] { display: none; }

.d-shop-cart-count.is-bump { transform: scale(1.35); }

.theme-comercio.d-layout .p-header-inner {
  gap: 0.5rem;
}

.d-shop-store-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.d-shop-store-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.d-shop-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.d-shop-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--market-green);
  background: color-mix(in srgb, var(--market-green) 8%, transparent);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.d-shop-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.d-shop-filter {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.d-shop-filter:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--ink);
}

.d-shop-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.d-shop-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.d-shop-product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.d-shop-product:hover {
  box-shadow: 0 14px 36px rgba(42, 20, 8, 0.09);
  transform: translateY(-2px);
}

.d-shop-product-img {
  position: relative;
  aspect-ratio: 5/4;
  overflow: hidden;
  background: var(--section-alt);
}

.d-shop-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.d-shop-product:hover .d-shop-product-img img {
  transform: scale(1.04);
}

.d-shop-product-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.55rem;
  border-radius: 3px;
}

.d-shop-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.15rem;
}

.d-shop-product-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--market-green);
  margin-bottom: 0.35rem;
}

.d-shop-product-body h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.d-shop-product-desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.85rem;
}

.d-shop-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.d-shop-product-price strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

.d-shop-product-price span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.d-shop-add-btn,
.d-shop-deal-add {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.d-shop-add-btn:hover,
.d-shop-deal-add:hover {
  background: var(--accent);
}

.d-shop-deal-add {
  margin-top: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.d-shop-deal-add:hover {
  background: #fff;
  color: var(--accent);
}

.d-shop-store-note {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 0.85rem 1rem;
  background: var(--section-alt);
  border-radius: 4px;
  border: 1px dashed var(--line);
}

.d-shop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 20, 8, 0.45);
  z-index: 900;
  backdrop-filter: blur(2px);
}

.d-shop-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  height: 100dvh;
  background: var(--surface);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 40px rgba(42, 20, 8, 0.12);
}

.d-shop-cart.is-open {
  transform: translateX(0);
}

body.shop-cart-open { overflow: hidden; }

.d-shop-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.d-shop-cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.d-shop-cart-close,
.d-shop-checkout-close {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--section-alt);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.d-shop-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.d-shop-cart-empty {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 2rem 0.5rem;
  line-height: 1.55;
}

.d-shop-cart-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.d-shop-cart-line {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.d-shop-cart-line-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
}

.d-shop-cart-line-info span {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.d-shop-cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
}

.d-shop-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.15rem;
}

.d-shop-qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: var(--section-alt);
  border-radius: 3px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
}

.d-shop-cart-footer {
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
  background: var(--section-alt);
}

.d-shop-cart-subtotals {
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

.d-shop-cart-subtotals > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  color: var(--ink-muted);
}

.d-shop-cart-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 1rem !important;
  color: var(--ink) !important;
}

.d-shop-cart-total strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
}

.d-shop-cart-min {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.d-shop-checkout-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.d-shop-cart-wa {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.d-shop-cart-wa:hover { color: var(--accent); }

.d-shop-checkout {
  border: none;
  border-radius: 8px;
  padding: 0;
  max-width: min(92vw, 720px);
  width: 100%;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(42, 20, 8, 0.2);
}

.d-shop-checkout::backdrop {
  background: rgba(42, 20, 8, 0.55);
  backdrop-filter: blur(3px);
}

.d-shop-checkout-form {
  padding: clamp(1.25rem, 4vw, 1.75rem);
}

.d-shop-checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.d-shop-checkout-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.d-shop-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.d-shop-fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin: 0;
}

.d-shop-fieldset legend {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0 0.35rem;
}

.d-shop-fieldset label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

.d-shop-fieldset input[type="text"],
.d-shop-fieldset input[type="email"],
.d-shop-fieldset input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg);
}

.d-shop-fieldset input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}

.d-shop-radios {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.d-shop-radios label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink);
  margin-top: 0.35rem;
}

.d-shop-card-preview {
  background: linear-gradient(135deg, #3d1a0a 0%, #6b2d12 50%, #c2410c 100%);
  color: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.d-shop-card-chip {
  width: 2.25rem;
  height: 1.65rem;
  background: linear-gradient(135deg, #d4af37, #f5e6a3);
  border-radius: 4px;
}

.d-shop-card-number-display {
  font-family: "Courier New", monospace;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  margin: 0.5rem 0;
}

.d-shop-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.d-shop-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.d-shop-card-brands {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.65rem;
}

.d-shop-card-brands span {
  display: block;
  font-size: 0.6875rem;
  margin-top: 0.15rem;
}

.d-shop-checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.25rem 0 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--section-alt);
  border-radius: 4px;
}

.d-shop-checkout-summary strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.d-shop-pay-btn {
  width: 100%;
  justify-content: center;
  position: relative;
  min-height: 48px;
}

.d-shop-pay-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: d-shop-spin 0.7s linear infinite;
}

@keyframes d-shop-spin {
  to { transform: rotate(360deg); }
}

.d-shop-checkout-note {
  text-align: center;
  font-size: 0.6875rem;
  color: var(--ink-muted);
  margin-top: 0.65rem;
}

.d-shop-success {
  padding: clamp(2rem, 6vw, 3rem) 1.5rem;
  text-align: center;
}

.d-shop-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background: var(--market-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.d-shop-success h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
}

.d-shop-success p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 360px;
  margin-inline: auto;
}

.d-shop-order-id {
  margin: 1.25rem 0 1.5rem !important;
  font-size: 1rem !important;
  color: var(--ink) !important;
}

.d-shop-steps-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.d-shop-steps-cta .p-btn-ghost {
  margin-left: 0;
}

@media (max-width: 900px) {
  .d-shop-checkout-grid { grid-template-columns: 1fr; }
  .d-shop-cart-label { display: none; }
}

@media (max-width: 640px) {
  .d-shop-catalog { grid-template-columns: 1fr 1fr; }
  .d-shop-filter-bar { gap: 0.35rem; }
  .d-shop-filter { font-size: 0.75rem; padding: 0.4rem 0.65rem; }
  .d-shop-store-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .d-shop-catalog { grid-template-columns: 1fr; }
}

/* ---- ABOGADOS: estilo despacho corporativo (referencia clásica) ---- */
.theme-profesionales.d-layout {
  --bg: #ffffff;
  --ink: #333333;
  --ink-muted: #666666;
  --accent: #e8622a;
  --accent-dark: #c94f1a;
  --accent-text: #ffffff;
  --font-brand: "Playfair Display", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --surface: #ffffff;
  --line: #e5e5e5;
  --section-alt: #f7f7f7;
  --footer-bg: #2d2d2d;
  --nav-bg: #3d3d3d;
  --quote-bg: #f7f7f7;
}

.theme-profesionales.d-layout { font-family: var(--font-body); color: var(--ink); background: var(--bg); }

.theme-profesionales.d-layout .p-btn-main {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.85rem 1.75rem;
}

.theme-profesionales.d-layout .p-btn-main:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.theme-profesionales.d-layout .p-footer {
  background: var(--footer-bg);
  color: #ccc;
}

.theme-profesionales.d-layout .p-footer a { color: #fff; }

.theme-profesionales.d-layout #ubicacion {
  background: var(--section-alt);
}

.theme-profesionales.d-layout #ubicacion .p-kicker { color: var(--accent); }

.theme-profesionales.d-layout #ubicacion .p-h2 {
  font-family: var(--font-display);
  color: var(--ink);
}

/* Top bar */
.d-law-topbar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.d-law-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  min-height: 36px;
}

.d-law-topbar-seo { margin: 0; }

.d-law-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.d-law-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.d-law-social:hover { color: var(--accent); }

.d-law-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}

.d-law-call-btn:hover { background: var(--accent-dark); }

/* Logo */
.d-law-brand-block {
  text-align: center;
  padding: 1.35rem 1rem 1.1rem;
  background: #fff;
}

.d-law-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.d-law-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.d-law-logo-name {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink);
}

.d-law-logo-name em {
  font-style: normal;
  color: var(--accent);
}

.d-law-logo-sub {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

/* Nav */
.d-law-navbar {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.d-law-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.d-law-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.d-law-nav-list a {
  display: block;
  padding: 0.95rem 1.15rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.d-law-nav-list a:hover,
.d-law-nav-list li:first-child a {
  background: var(--accent);
  color: #fff;
}

.d-law-navbar .p-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.d-law-navbar .p-menu span { background: #fff; }

/* Slider hero */
.d-law-slider {
  position: relative;
  background: #111;
}

.d-law-slider-viewport {
  position: relative;
  overflow: hidden;
  max-height: min(72vh, 560px);
}

.d-law-slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.d-law-slide {
  flex: 0 0 100%;
  position: relative;
  min-height: clamp(280px, 52vw, 520px);
}

.d-law-slide img {
  width: 100%;
  height: clamp(280px, 52vw, 520px);
  object-fit: cover;
  display: block;
  filter: brightness(0.72);
}

.d-law-slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  pointer-events: none;
}

.d-law-slide-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.35rem;
}

.d-law-slide-caption p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
}

.d-law-slider-prev,
.d-law-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.d-law-slider-prev:hover,
.d-law-slider-next:hover {
  background: var(--accent-dark);
  transform: translateY(-50%) scale(1.05);
}

.d-law-slider-prev { left: 1rem; }
.d-law-slider-next { right: 1rem; }

.d-law-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.d-law-slider-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.d-law-slider-dot.is-active { background: var(--accent); }

/* Sections shared */
.d-law-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.d-law-section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.d-law-section-intro.center {
  text-align: center;
  margin-inline: auto;
}

.d-law-section-intro p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.d-law-section-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  text-decoration: none;
}

.d-law-text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.d-law-text-link:hover { text-decoration: underline; }

/* About */
.d-law-about {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: #fff;
}

.d-law-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.d-law-about-copy p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.d-law-about-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Stats */
.d-law-data {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--section-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.d-law-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.d-law-data-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
}

.d-law-data-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.d-law-data-card span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* Services */
.d-law-services {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: #fff;
}

.d-law-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.d-law-service-card {
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow 0.25s ease;
}

.d-law-service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.d-law-service-img {
  display: block;
  overflow: hidden;
}

.d-law-service-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.d-law-service-card:hover .d-law-service-img img {
  transform: scale(1.04);
}

.d-law-service-body {
  padding: 1.15rem 1.25rem 1.35rem;
  text-align: center;
}

.d-law-service-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.d-law-service-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.d-law-service-body h3 a:hover { color: var(--accent); }

.d-law-service-body p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.d-law-service-link {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s;
}

.d-law-service-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.d-law-services-more {
  text-align: center;
  margin-top: 2rem;
}

/* CTA band */
.d-law-cta-band {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
  background: var(--nav-bg);
  color: #fff;
  text-align: center;
}

.d-law-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
  max-width: 720px;
  margin-inline: auto;
}

.d-law-cta-inner p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.d-law-cta-inner strong { color: #fff; }

/* News */
.d-law-news {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--section-alt);
}

.d-law-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.d-law-news-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.d-law-news-img {
  display: block;
  overflow: hidden;
}

.d-law-news-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.d-law-news-card:hover .d-law-news-img img {
  transform: scale(1.03);
}

.d-law-news-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.d-law-news-body time {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.d-law-news-cat {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.d-law-news-body h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.65rem 0 0.5rem;
}

.d-law-news-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.d-law-news-body h3 a:hover { color: var(--accent); }

.d-law-news-body p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.d-law-news-more {
  text-align: center;
  margin-top: 1.75rem;
}

.d-law-news-more a {
  color: var(--accent);
  font-weight: 600;
}

/* Search footer strip */
.d-law-search-footer {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.d-law-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.d-law-search-grid h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.d-law-search-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0;
  margin: 0;
}

.d-law-search-list a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.d-law-search-list a:hover {
  color: var(--accent);
}

.d-law-search-grid p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.d-law-search-grid a {
  color: var(--accent);
  text-decoration: none;
}

.d-law-search-grid a:hover { text-decoration: underline; }

/* Shared distinct section titles */
.d-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 0.75rem;
}

.d-section-lead {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 52ch;
  line-height: 1.65;
  text-wrap: pretty;
}

.d-section-lead.center { margin-inline: auto; text-align: center; }

.d-testimonials-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.d-testimonials-duo .p-testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  body.d-layout {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  .d-law-navbar {
    top: 2.35rem;
  }

  .d-fr-nav {
    position: relative;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }

  .d-fr-nav-list.p-nav,
  .d-med-nav-list.p-nav,
  .d-law-nav-list.p-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
    z-index: 120;
  }

  .d-fr-nav-list.p-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.35rem 0;
  }

  .d-fr-nav-list.p-nav a {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .d-fr-nav-list.open {
    display: flex;
    flex-direction: column;
  }

  .d-fr-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.5rem 0;
    font-size: 0.6875rem;
  }

  .d-fr-header-inner {
    padding: 0.65rem 0;
    gap: 0.5rem;
  }

  .d-med-hero {
    min-height: clamp(440px, 85vh, 680px);
  }

  .d-med-hero-content {
    padding: clamp(4.5rem, 11vw, 6.5rem) 1rem 2.75rem;
  }

  .d-med-hero-content h1 {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .d-med-hero-curves::before {
    width: min(95vw, 700px);
    height: min(95vw, 700px);
    left: -30%;
  }

  .d-med-hero-curves::after {
    width: min(80vw, 560px);
    height: min(80vw, 560px);
    bottom: -28%;
  }

  .d-med-intro-inner,
  .d-med-gift-inner,
  .d-med-valuation-inner {
    text-align: center;
  }

  .d-med-insurers {
    justify-content: center;
    text-align: center;
  }

  .p-quote-band-inner {
    gap: 1.5rem;
  }

  .p-quote-band-visual img {
    max-height: 280px;
    object-fit: cover;
    width: 100%;
  }

  .p-location-map img {
    min-height: 200px;
    object-fit: cover;
  }

  .d-med-service-row {
    grid-template-columns: 1fr;
  }

  .d-med-service-row.is-reverse .d-med-service-media { order: -1; }

  .d-med-testimonials-grid,
  .d-med-team-grid {
    grid-template-columns: 1fr;
  }

  .d-med-nav .p-menu { display: flex; }

  .d-med-nav { position: relative; }

  .d-med-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(61, 111, 111, 0.98);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  .d-med-nav-list.open { display: flex; }

  .d-med-nav-list a {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .d-med-nav { position: relative; }

  .d-law-about-grid {
    grid-template-columns: 1fr;
  }

  .d-law-about-photo { order: -1; }

  .d-law-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .d-law-services-grid,
  .d-law-news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .d-law-search-grid {
    grid-template-columns: 1fr;
  }

  .d-law-topbar-seo { display: none; }

  .d-law-navbar .p-menu { display: flex; }

  .d-law-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
  }

  .d-law-nav-list.open { display: flex; }

  .d-law-nav-list a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .d-law-slider-prev,
  .d-law-slider-next {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem;
  }

  .d-hero-beauty {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .d-hero-beauty-copy h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .d-hero-beauty-copy {
    padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  }

  .d-fr-hero-grid,
  .d-fr-types-grid,
  .d-fr-budgeted-grid,
  .d-fr-steps-grid,
  .d-fr-advantages-grid,
  .d-fr-stats-grid,
  .d-fr-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .d-fr-budgeted-grid { grid-template-columns: repeat(2, 1fr); }

  .d-fr-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .d-fr-advisor-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .d-fr-advisor-actions .d-fr-btn-primary,
  .d-fr-advisor-actions .d-fr-btn-outline {
    width: 100%;
    text-align: center;
  }

  .d-fr-nav-list { display: none; }
  .d-fr-nav .p-menu { display: flex; }

  .d-fr-header-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
  }

  .d-fr-advisor-inner {
    flex-direction: column;
    text-align: center;
  }

  .d-fr-advisor-actions { justify-content: center; width: 100%; }

  .d-fr-ba-strip { grid-template-columns: 1fr; }

  .d-shop-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: clamp(2rem, 5vw, 3rem);
  }

  .d-shop-hero-visual {
    order: -1;
    min-height: 300px;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .d-shop-hero-copy h1 { font-size: clamp(2rem, 7vw, 2.75rem); }

  .d-shop-lead { max-width: none; }

  .d-shop-hero-actions { flex-direction: column; align-items: stretch; }
  .d-shop-hero-actions .p-btn { justify-content: center; text-align: center; }

  .d-shop-cred-bar { grid-template-columns: repeat(2, 1fr); }
  .d-shop-stat:nth-child(2) { border-right: none; }
  .d-shop-stat:nth-child(1),
  .d-shop-stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .d-shop-deals-grid { grid-template-columns: 1fr; }

  .d-shop-aisles { grid-template-columns: 1fr 1fr; }

  .d-shop-founder-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .d-shop-founder-photo { margin-inline: auto; }

  .d-shop-steps { grid-template-columns: 1fr; }

  .d-shop-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .d-shop-gallery img:first-child {
    grid-column: 1 / -1;
    min-height: 240px;
  }

  .d-shop-voices { grid-template-columns: 1fr; }

  .d-shop-faq-layout { grid-template-columns: 1fr; gap: 2rem; }

  .d-flow-row,
  .d-mood-strip,
  .d-team-row,
  .d-testimonials-duo {
    grid-template-columns: 1fr;
  }

  .d-mood-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .d-hero-beauty-stack .img-b {
    position: relative;
    width: 60%;
    margin-top: -3rem;
  }

  .d-practice-grid { grid-template-columns: 1fr; }

  .d-spec-table th,
  .d-spec-table td {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
  }

  .d-spec-table th {
    padding-top: 1rem;
  }

  .d-spec-table td {
    padding-bottom: 1rem;
  }

  .d-founder {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .d-founder img {
    margin-inline: auto;
  }

  .d-section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

@media (max-width: 640px) {
  body.d-layout {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .theme-comercio.d-layout .p-header-cta {
    display: none;
  }

  .theme-belleza.d-layout .p-header-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
  }

  .d-law-brand-block {
    padding: 1rem 0.75rem 0.85rem;
  }

  .d-law-logo-mark {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.65rem;
  }

  .d-law-logo-name {
    font-size: 1rem;
  }

  .d-law-logo-sub {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
  }

  .d-law-slide-caption {
    padding: 1.25rem 1rem;
  }

  .d-law-slide-caption p {
    font-size: 0.8125rem;
  }

  .d-law-cta-inner .p-btn {
    width: 100%;
    justify-content: center;
  }

  .d-law-topbar-actions {
    gap: 0.4rem;
  }

  .d-law-call-btn span {
    display: none;
  }

  .d-med-team-grid {
    grid-template-columns: 1fr;
  }

  .d-med-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .d-med-marquee-track span {
    font-size: 0.6875rem;
    padding-inline: 1.25rem;
  }

  .d-fr-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .d-fr-stat {
    padding: 1rem 0.5rem;
  }

  .d-fr-header-cta {
    font-size: 0.625rem;
    padding: 0.45rem 0.55rem;
    max-width: 7.5rem;
    text-align: center;
    line-height: 1.2;
  }

  .d-fr-configurator {
    padding: 1rem;
  }

  .d-fr-configurator h2 {
    font-size: 1rem;
  }

  .d-fr-hero-copy h1 {
    font-size: clamp(1.5rem, 7vw, 1.85rem);
  }

  .d-shop-trust-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .d-shop-product-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .d-shop-add-btn {
    width: 100%;
    justify-content: center;
  }

  .d-shop-steps-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .d-shop-steps-cta .p-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .p-split > .d-reveal + .d-reveal {
    margin-top: 1.5rem;
  }

  .d-law-services-grid,
  .d-law-news-grid,
  .d-law-data-grid {
    grid-template-columns: 1fr;
  }

  .d-law-slide-caption h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .d-shop-aisles { grid-template-columns: 1fr; }

  .d-shop-hero-side-b { display: none; }

  .d-shop-hero-main { width: 85%; }

  .d-shop-hero-side-a { width: 42%; top: 5%; }

  .d-mood-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .d-hero-beauty-stack {
    padding: 1.25rem;
  }

  .d-hero-beauty-stack .img-b {
    width: 55%;
    margin-top: -2rem;
  }

  .d-menu-elegant li {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .d-fr-hero-visual img { max-height: 220px; }

  .d-fr-budgeted-grid { grid-template-columns: 1fr; }

  .d-fr-types-grid { gap: 0.85rem; }
}

@media (max-width: 480px) {
  .d-fr-stats-grid {
    grid-template-columns: 1fr;
  }

  .d-fr-header-cta {
    display: none;
  }

  .d-fr-logo-text {
    font-size: 0.95rem;
  }

  .d-hero-beauty-copy h1 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  .d-hero-beauty-stack .img-a {
    width: 78%;
  }

  .d-mood-strip {
    grid-template-columns: 1fr 1fr;
  }

  .p-quote-band blockquote {
    font-size: 1.15rem;
  }

  .d-shop-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.75rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .d-shop-filter-bar::-webkit-scrollbar { display: none; }

  .d-shop-filter {
    flex-shrink: 0;
  }
}
