:root {
  --color-secondary: #d6b26e;
  --color-accent: #b08a45;
  --color-accent-deep: #c9a35c;
  --color-silver: #d9d9d9;
  --color-gray: #9e9e9e;
  --color-bg: #000000;
  --color-bg-alt: #070707;
  --color-surface: #0e0e0e;
  --color-text: #f2f2f2;
  --color-text-light: #b5afa3;
  --color-border: rgba(176, 138, 69, 0.22);
  --color-error: #ff7a5c;
  --gold-grad: linear-gradient(135deg, #ecd7a3 0%, #cfa961 45%, #a27a35 100%);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --radius: 2px;
  --header-h: 76px;
  --sidebar-w: 240px;
  --section-y: clamp(80px, 10vw, 128px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

button,
a,
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

section[id] {
  scroll-margin-top: 80px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: var(--color-secondary);
  color: #000;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* el menú lateral resta ancho: sin padding sólo cuando sobra espacio */
@media (min-width: 1520px) {
  .container {
    padding: 0;
  }
}

/* Tipografía */

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
}

h1,
h2 {
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.125rem, 4.2vw, 3rem);
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

p {
  text-wrap: pretty;
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}

.section-head h2 {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-xl {
  font-size: clamp(2.75rem, 5.4vw, 4.25rem);
  letter-spacing: 0.02em;
}

.section-head .lead {
  margin-top: 20px;
}

.lead {
  color: var(--color-text-light);
  font-size: clamp(1.0625rem, 1.4vw, 1.125rem);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: 18px;
}

.mark {
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  position: relative;
  flex: none;
  display: inline-block;
}

.mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: var(--color-accent);
  transform: translateX(-50%);
}

.on-dark .eyebrow {
  color: var(--color-secondary);
}

.on-dark .mark {
  border-color: var(--color-secondary);
}

.on-dark .mark::after {
  background: var(--color-secondary);
}

.divider {
  position: relative;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(176, 138, 69, 0.45), transparent);
  display: flex;
  justify-content: center;
  align-items: center;
}

.divider .mark {
  background: var(--color-bg);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.btn .material-icons,
.btn i {
  font-size: 1.15rem;
}

.btn-gold {
  background: var(--gold-grad);
  background-size: 140% 100%;
  background-position: 0 0;
  color: #0b0b0b;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-position 0.6s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 30px rgba(176, 138, 69, 0.3);
}

.btn-dark {
  background: #141414;
  color: #fff;
  border-color: rgba(214, 178, 110, 0.45);
}

.btn-dark:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

/* WhatsApp: píldora negra con filo dorado y el logo verde a la izquierda (igual que el flotante) */
.btn-whatsapp,
.whatsapp-float {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 22px 7px 7px;
  border-radius: 999px;
  border: 1px solid var(--color-secondary);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(214, 178, 110, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-whatsapp:hover,
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(214, 178, 110, 0.35),
    0 0 22px rgba(214, 178, 110, 0.25);
}

.btn-whatsapp .material-icons,
.whatsapp-float .material-icons {
  font-size: 20px;
  color: var(--color-secondary);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(214, 178, 110, 0.55);
}

.btn-ghost:hover {
  background: rgba(214, 178, 110, 0.1);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(176, 138, 69, 0.45);
  }
  50% {
    box-shadow: 0 0 22px 4px rgba(176, 138, 69, 0.18);
  }
}

/* Cabecera */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid rgba(176, 138, 69, 0);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(176, 138, 69, 0.28);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 768px) {
  .nav {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .nav {
    padding: 0;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-emblem {
  width: 56px;
  height: 56px;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 72%);
  mask-image: radial-gradient(circle, #000 58%, transparent 72%);
}

.brand-logo {
  display: none;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(214, 178, 110, 0.35);
  border-radius: var(--radius);
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}

.menu-toggle:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.nav-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #000;
  border-top: 1px solid rgba(176, 138, 69, 0.25);
  padding: 24px 20px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu ul {
  display: flex;
  flex-direction: column;
}

.nav-menu a.nav-link {
  display: block;
  padding: 16px 0;
  color: var(--color-silver);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(217, 217, 217, 0.1);
  transition: color 0.3s ease;
}

.nav-menu a.nav-link:hover,
.nav-menu a.nav-link.active {
  color: var(--color-secondary);
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--sidebar-w);
  }

  .site-header {
    right: auto;
    bottom: 0;
    width: var(--sidebar-w);
    border-bottom: 0;
    border-right: 1px solid rgba(176, 138, 69, 0.28);
  }

  .site-header.scrolled {
    box-shadow: none;
  }

  .nav {
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 56px;
    padding: 40px 0;
    overflow-y: auto;
  }

  .brand {
    justify-content: center;
  }

  .brand-emblem,
  .brand-name,
  .menu-toggle {
    display: none;
  }

  .brand-logo {
    display: block;
    width: 160px;
    height: auto;
  }

  .nav-menu {
    position: static;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu ul {
    margin-left: 32px;
    border-left: 1px solid rgba(176, 138, 69, 0.25);
  }

  .nav-menu a.nav-link {
    position: relative;
    padding: 13px 20px 13px 28px;
    border: 0;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.35;
  }

  /* guion dorado que cruza la línea vertical en el enlace activo */
  .nav-menu a.nav-link::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .nav-menu a.nav-link:hover::after,
  .nav-menu a.nav-link.active::after {
    transform: scaleX(1);
  }
}

/* Portada */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #000;
  padding: calc(var(--header-h) + 48px) 0 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 28%, rgba(0, 0, 0, 0.78) 52%, #000 85%),
    url("assets/hero-standN.jpeg");
  background-size: cover;
  background-position: 55% center;
  will-change: transform;
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.4vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s ease 0.15s both;
}

/* "se ve, conecta y vende": un dorado más luminoso y con brillo, para que se lea sobre la foto */
.hero h1 em {
  display: block;
  font-weight: 600;
  background: linear-gradient(135deg, #f7e6b4 0%, #e6c273 45%, #cfa04a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(214, 178, 110, 0.3));
  padding-right: 0.06em;
}

.about-title em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 400;
  color: #ece7de;
  max-width: 34ch;
  margin-bottom: 36px;
  animation: fadeInUp 0.9s ease 0.35s both;
}

.hero-social {
  margin-top: 32px;
  animation: fadeInUp 0.9s ease 0.8s both;
}

/* va después de las reglas base de la portada para poder sobrescribirlas */
@media (min-width: 1024px) {
  /* la foto ocupa los 3/4 derechos y entra completa; el oscurecido va detrás
     del texto (sobre .hero-content), no recortando la imagen */
  .hero {
    align-items: center;
    padding: 72px 0;
  }

  /* foto apaisada (16:9) en los 3/4 derechos; el borde izquierdo se funde
     con la zona oscura del texto */
  .hero-bg {
    left: auto;
    width: 75%;
    background-image: url("assets/hero-standN.jpeg");
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%);
    mask-image: linear-gradient(to right, transparent, #000 22%);
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, transparent 78%, #000 100%),
      linear-gradient(to right, #000 25%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.35) 56%, transparent 72%);
    pointer-events: none;
    z-index: 1;
  }

  .hero-content {
    max-width: min(620px, 52%);
    z-index: 2;
    padding: 0 0 0 clamp(40px, 5vw, 88px);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  animation: fadeInUp 0.9s ease 0.65s both;
}

@media (max-width: 479px) {
  .hero-ctas .btn {
    width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quiénes somos */

.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-title {
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 28px;
}

.about-text p {
  color: var(--color-text-light);
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--color-secondary);
  letter-spacing: 0.04em;
}

.why-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0 16px;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.why-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(176, 138, 69, 0.6), transparent);
}

.why-list li {
  padding: 14px 0;
  color: var(--color-silver);
  border-bottom: 1px solid rgba(176, 138, 69, 0.18);
}

.why-list li:last-child {
  border-bottom: 0;
}

.about-text .btn {
  margin-top: 36px;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  height: auto;
}

/* línea fina dorada a cada lado (el dorado del filo del botón de WhatsApp),
   que se apaga arriba y abajo */
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent, var(--color-secondary) 50%, transparent) left / 1px 100% no-repeat,
    linear-gradient(to bottom, transparent, var(--color-secondary) 50%, transparent) right / 1px 100% no-repeat;
}

/* en escritorio, como la portada: la foto (sin retocar) de fondo en los 3/4
   derechos y el oscurecido detrás del texto */
@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .about::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(to bottom, #000 0%, transparent 14%, transparent 86%, #000 100%),
      linear-gradient(to right, #000 25%, rgba(0, 0, 0, 0.82) 40%, rgba(0, 0, 0, 0.35) 56%, transparent 72%);
    pointer-events: none;
  }

  .about-grid {
    display: block;
  }

  .about-text {
    position: relative;
    z-index: 2;
    max-width: min(560px, 50%);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  }

  /* recuadro con la forma de la foto, un 8% más alto que la pantalla y centrado
     en la sección; los bordes se apagan largo hacia el negro para que la foto se
     funda con el fondo y no parezca un cuadro puesto encima */
  .about-media {
    position: absolute;
    top: calc(50% - 54vh);
    right: 0;
    bottom: calc(50% - 54vh);
    aspect-ratio: 900 / 1124;
    min-width: 60%;
    -webkit-mask-image:
      linear-gradient(to right, transparent, rgba(0, 0, 0, 0.35) 18%, #000 42%),
      linear-gradient(to bottom, transparent 4%, #000 26%, #000 74%, transparent 96%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent, rgba(0, 0, 0, 0.35) 18%, #000 42%),
      linear-gradient(to bottom, transparent 4%, #000 26%, #000 74%, transparent 96%);
    mask-composite: intersect;
  }

  .about-media img {
    height: 100%;
    object-fit: cover;
  }

  /* el oscurecido taparía la línea izquierda: en escritorio las líneas van
     en la sección, una junto al menú y otra en el borde derecho */
  .about-media::after {
    content: none;
  }

  .about::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
      linear-gradient(to bottom, transparent, var(--color-secondary) 50%, transparent) left / 1px 100% no-repeat,
      linear-gradient(to bottom, transparent, var(--color-secondary) 50%, transparent) right / 1px 100% no-repeat;
  }
}

/* Franjas oscuras: cifras, llamada final y pie */

.band-dark {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(214, 178, 110, 1) 1px, transparent 1.7px);
  background-size: 18px 18px;
  opacity: 0.05;
  pointer-events: none;
}

.band-dark .divider .mark {
  background: #000;
}

/* Productos y servicios: rejilla centrada (3 + 2), fotos fundidas con el negro */

.products {
  background: #000;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px 32px;
}

.product-item {
  flex: 1 1 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .product-item {
    flex-basis: calc(50% - 16px);
  }

  /* dos líneas reservadas: así las fotos de una misma fila quedan a la misma altura */
  .product-name {
    min-height: 2.6em;
  }
}

@media (min-width: 1100px) {
  .product-item {
    flex-basis: calc(33.333% - 22px);
  }
}

.product-name {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #c9c9c9 40%, #8f8f8f 60%, #e6e6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.product-media {
  height: clamp(320px, 32vw, 420px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* fotos con su fondo, luces y sombras: sólo se funden los bordes con el negro */
.product-media img,
.pd-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
  mask-composite: intersect;
  transition: transform 0.5s ease;
}

.product-media:hover img {
  transform: scale(1.03);
}

/* Cuadro de detalles del producto, con el mismo filo dorado del botón de WhatsApp */

.product-dialog {
  margin: auto;
  width: min(820px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--color-secondary);
  border-radius: 24px;
  background: #050505;
  color: var(--color-text);
  box-shadow:
    0 0 0 1px rgba(214, 178, 110, 0.15),
    0 0 40px rgba(214, 178, 110, 0.18);
}

.product-dialog[open] {
  display: grid;
  animation: fadeInUp 0.35s ease both;
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
}

@media (min-width: 720px) {
  .product-dialog[open] {
    grid-template-columns: 1fr 1fr;
  }
}

.pd-media {
  display: flex;
  justify-content: center;
  align-items: center;
  height: clamp(260px, 50vh, 480px);
  padding: 24px;
}

.pd-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 8px 28px 32px;
}

@media (min-width: 720px) {
  .pd-body {
    padding: 48px 40px 48px 8px;
  }
}

.pd-body .product-name {
  margin: 0;
  text-align: left;
}

.pd-specs {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-silver);
}

.pd-specs li {
  position: relative;
  padding-left: 22px;
}

.pd-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 1px;
  background: var(--color-secondary);
}

.pd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-silver);
  transition: color 0.3s ease;
}

.pd-close:hover {
  color: var(--color-secondary);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-secondary);
  transition: gap 0.3s ease;
}

.product-link .material-icons {
  font-size: 16px;
}

.product-link:hover {
  gap: 12px;
}

.products-cta {
  margin-top: clamp(56px, 7vw, 80px);
  text-align: center;
}

/* Galería */

.gallery {
  background:
    radial-gradient(circle at 30% 70%, rgba(176, 138, 69, 0.07), transparent 60%),
    var(--color-bg-alt);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.g-item {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .g-item {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    gap: 24px;
  }

  .g-item {
    flex: 0 0 calc(33.333% - 16px);
  }
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: #000;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.g-item:hover img {
  transform: scale(1.06);
}

.g-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--color-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.g-item figcaption .mark {
  border-color: var(--color-secondary);
}

.g-item figcaption .mark::after {
  background: var(--color-secondary);
}

/* Testimonios */

.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

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

.testi-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 48px 32px 32px;
  display: flex;
  flex-direction: column;
  transition:
    opacity 0.6s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.testi-card.visible:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.quote-mark {
  position: absolute;
  top: 8px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.45;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.stars .material-icons {
  font-size: 18px;
}

.testi-card blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-silver);
  flex: 1;
  margin-bottom: 28px;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.testi-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-accent);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
}

img.testi-avatar {
  object-fit: cover;
  padding: 2px;
}

.testi-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testi-role {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Contacto */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
  }
}

.contact-form {
  display: grid;
  gap: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px 20px;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.18);
}

@media (min-width: 640px) {
  .contact-form {
    padding: 48px 40px;
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #767676;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--color-gray);
}

.field input:focus,
.field textarea:focus {
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(176, 138, 69, 0.15);
}

.field-error {
  display: none;
  font-size: 0.8rem;
  margin-top: 8px;
  color: var(--color-error);
  font-weight: 500;
}

.field-error::before {
  content: "— ";
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--color-error);
  box-shadow: 0 0 0 1px var(--color-error);
}

.field.has-error .field-error {
  display: block;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  grid-column: 1 / -1;
  padding: 20px 24px;
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.form-status[hidden] {
  display: none;
}

.form-status a {
  font-weight: 600;
}

.form-success {
  border: 1px solid var(--color-accent);
  background: rgba(214, 178, 110, 0.08);
}

.form-success .material-icons {
  color: var(--color-accent-deep);
}

.form-fallback {
  border: 1px solid var(--color-error);
  background: rgba(255, 122, 92, 0.08);
}

.form-fallback .material-icons {
  color: var(--color-error);
}

.info-list {
  display: grid;
  gap: 28px;
  margin: 8px 0 40px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.info-icon i {
  font-size: 22px;
}

.info-item h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.info-item p,
.info-item a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  text-decoration: none;
}

.info-item a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.map-wrap {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 6px;
  border-radius: var(--radius);
}

.map-wrap iframe {
  display: block;
}

/* Pie */

.site-footer {
  background: #000;
  color: var(--color-silver);
  padding: 88px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--color-gray);
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a,
.footer-contact a {
  color: var(--color-silver);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-secondary);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-silver);
}

.footer-contact li + li {
  margin-top: 14px;
}

.footer-contact .material-icons,
.footer-contact i {
  color: var(--color-accent);
  font-size: 20px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(214, 178, 110, 0.45);
  display: grid;
  place-items: center;
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.social a:hover {
  background: var(--color-secondary);
  color: #000;
  transform: translateY(-3px);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-top: 16px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-gray);
  text-align: center;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(176, 138, 69, 0.45), transparent);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* WhatsApp flotante: "Comunícate con un asesor" */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.whatsapp-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
}

/* sólo el ícono verde de WhatsApp, sin círculo de fondo */
.wa-icon {
  width: 44px;
  height: 44px;
  flex: none;
  color: #25d366;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.btn .wa-icon i {
  font-size: 2rem;
}

@media (max-width: 479px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    gap: 10px;
    padding-right: 16px;
    font-size: 0.82rem;
  }

  .wa-icon {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
