/* ModulArt — Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
  --bg-dark: #0a0a0a;
  --bg-section: #181a1a;
  --bg-card: #242424;
  --accent: #b87333;
  --accent-hover: #d4924a;
  --silver: #c8c8c8;
  --text: #ffffff;
  --text-muted: #8a8a8a;
  --border: rgba(255, 255, 255, 0.12);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-signature: "Great Vibes", cursive;
  --header-h: 100px;
  --header-h-mobile: 72px;
  --mobile-header-offset: var(--header-h-mobile);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-section);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1230px, calc(100% - 2rem));
  margin-inline: auto;
  max-width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

.header--solid {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.header__logo img {
  width: 100px;
  height: auto;
  transition: width var(--transition);
}

.logo-signature {
  font-family: var(--font-signature);
  color: #ffffff;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.header__logo .logo-signature {
  font-size: 1.05rem;
  margin-top: -0.15rem;
}

.header--solid .header__logo img { width: 80px; }

.header--solid .header__logo .logo-signature {
  font-size: 0.95rem;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: border-color var(--transition), background var(--transition);
}

.header__toggle:hover,
.header__toggle:focus-visible {
  border-color: var(--accent);
  background: rgba(184, 115, 51, 0.12);
  outline: none;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav ul {
  display: flex;
  gap: 2rem;
}

.header__nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.header__nav a:hover { color: var(--accent); }

.header__social {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

.header__social a { color: var(--text-muted); }
.header__social a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn--full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: min(100vh, 750px);
  min-height: 420px;
  overflow: hidden;
  margin-top: 0;
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide--active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.75) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 4rem;
}

.hero__tagline {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--silver);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--accent); }

.hero__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__dots { display: flex; gap: 8px; }

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero__dot--active,
.hero__dot:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Sections */
.section {
  padding: 70px 0;
}

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

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section__title-center { text-align: center; }

.section__divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.section__divider--center { margin-inline: auto; }

.section__intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.85);
}

.section__text p {
  text-align: justify;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.section__text .btn { margin-top: 1.5rem; float: right; }

.section__grid--empresa {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: end;
}

.section__secondary-img {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.section__secondary-img img {
  width: 100%;
  max-width: 720px;
  border: 2px solid var(--bg-dark);
  object-fit: cover;
  object-position: center;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-card:hover { background: #2a2a2a; }
.product-card:hover h3 { color: var(--accent); }
.product-card:hover .product-card__icon { color: var(--accent); }

.product-card--photo {
  padding: 0 0 1.5rem;
  justify-content: flex-start;
  overflow: hidden;
}

.product-card__media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #111;
  margin-bottom: 1.15rem;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card--photo:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card--photo h3,
.product-card--photo .product-card__count,
.product-card--photo .product-card__link {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.product-card__count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.product-card--soon {
  opacity: 0.82;
}

.products-grid[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}

.product-card__icon {
  width: 100px;
  height: 95px;
  color: var(--text);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.product-card__icon svg { width: 100%; height: 100%; }

.product-card h3 {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.product-card__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.25);
  position: relative;
  padding-bottom: 8px;
  transition: var(--transition);
}

.product-card__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.product-card:hover .product-card__link { color: var(--accent); }
.product-card:hover .product-card__link::after { background: var(--accent); }

a.product-card { color: inherit; }

/* Product detail pages */
.product-hero {
  position: relative;
  height: min(55vh, 500px);
  min-height: 320px;
  margin-top: var(--header-h);
  overflow: hidden;
}

.product-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-hero__img--empty {
  background: linear-gradient(135deg, #1a1510 0%, #2d2419 50%, #1a1510 100%);
}

.product-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.85));
}

.product-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--text); }

.product-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--accent);
}

.product-hero__subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--silver);
  margin-top: 0.5rem;
}

.product-intro {
  padding: 40px 0;
  background: var(--bg-section);
}

.product-intro__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.product-intro__inner p {
  flex: 1;
  min-width: 260px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
}

.product-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-catalog__header {
  margin-bottom: 2.5rem;
}

.product-catalog__header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent);
}

.product-catalog__count {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 0.5rem;
}

.product-catalog__empty {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 36rem;
  line-height: 1.6;
}

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

.catalog-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-section);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  outline: none;
}

.catalog-card:hover,
.catalog-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.catalog-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.catalog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  .catalog-card:hover .catalog-card__img-wrap img,
  .catalog-card:focus-visible .catalog-card__img-wrap img {
    transform: scale(1.06);
  }
}

.catalog-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.catalog-card:hover .catalog-card__overlay,
.catalog-card:focus-visible .catalog-card__overlay {
  opacity: 1;
}

.catalog-card__view {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 0.6rem 1.2rem;
}

.catalog-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.catalog-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.catalog-card__body p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.catalog-card__tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  border: 1px solid rgba(184, 115, 51, 0.4);
  padding: 0.25rem 0.6rem;
}

.catalog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.catalog-lightbox[hidden] { display: none; }

.catalog-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.catalog-lightbox__dialog {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.catalog-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.catalog-lightbox__close:hover { color: var(--accent); }

.catalog-lightbox__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.catalog-lightbox__info {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-lightbox__info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  padding-right: 2rem;
}

.catalog-lightbox__info p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  flex: 1;
}

.catalog-lightbox__info .btn { margin-top: auto; align-self: flex-start; }

.product-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.product-related__link {
  display: block;
  background: var(--bg-card);
  border: 2px solid var(--bg-section);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.product-related__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Services — desktop: imagen + texto en 2 columnas alternadas */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-block--reverse .service-block__img {
  grid-column: 2;
  grid-row: 1;
}

.service-block--reverse .service-block__content {
  grid-column: 1;
  grid-row: 1;
}

.service-block__content {
  text-align: left;
}

.service-block__icon {
  width: 72px;
  height: 98px;
  color: var(--accent);
  margin-bottom: 1rem;
  margin-inline: 0;
}

.service-block__icon svg { width: 100%; height: 100%; }

.service-block__content h2 {
  position: relative;
  padding-bottom: 1rem;
}

.service-block__content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 1px;
  background: var(--border);
}

.service-block--reverse .service-block__content h2::after {
  left: auto;
  right: 0;
}

.service-block__content p {
  text-align: justify;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.service-block__img {
  overflow: hidden;
  border: 2px solid var(--border);
  width: 100%;
}

.service-block__img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.section__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Contact */
.section--contact { padding: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.contact-map {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  background: var(--bg-dark);
}

.contact-map__frame {
  position: relative;
  flex: 1;
  min-height: 360px;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info-box {
  position: relative;
  background: var(--accent);
  padding: 1.75rem 2rem;
  z-index: 2;
  width: 100%;
}

.contact-info-box p { margin-bottom: 0.5rem; }
.contact-info-box a { color: var(--text); }
.contact-info-box a:hover { opacity: 0.85; }

.contact-form-wrap {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-section) 100%);
  position: relative;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-wrap h2 {
  text-align: left;
}

.contact-form-wrap .section__divider {
  margin-inline: 0;
}

@media (min-width: 993px) {
  .contact-map {
    position: relative;
    display: block;
    min-height: 560px;
  }

  .contact-map__frame {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }

  .contact-info-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    max-width: 420px;
  }

  /* Desktop: servicios en 2 columnas alternadas */
  .service-block {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }

  .service-block__content {
    text-align: left;
  }

  .service-block__icon {
    margin-inline: 0;
  }

  .service-block__content h2 {
    text-align: left;
  }

  .service-block__content h2::after {
    left: 0;
    right: auto;
    transform: none;
    width: 200px;
  }

  .service-block--reverse .service-block__content h2::after {
    left: auto;
    right: 0;
  }

  .service-block__content p {
    text-align: justify;
  }

  .service-block__content .btn {
    display: inline-block;
    width: auto;
    max-width: none;
    margin-inline: 0;
    text-align: center;
  }

  .section__grid--empresa {
    grid-template-columns: 5fr 7fr;
    align-items: end;
  }

  .section__text {
    text-align: left;
  }

  .section__text h2 {
    text-align: left;
  }

  .section__text p {
    text-align: left;
  }

  .section__text .btn {
    float: right;
    display: inline-block;
    width: auto;
  }

  .section__divider:not(.section__divider--center) {
    margin-inline: 0;
  }

  .contact-form-wrap h2 {
    text-align: left;
  }

  .contact-form-wrap .section__divider {
    margin-inline: 0;
  }
}

.contact-form { margin-top: 2rem; }

.form-group { margin-bottom: 1rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  color: var(--text);
  padding: 12px 10px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.5); }

.form-group--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 14px;
  cursor: pointer;
}

.form-group--checkbox input { margin-top: 4px; accent-color: var(--accent); }

/* Footer */
.footer {
  background: var(--bg-card);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 2rem;
  padding: 3rem 0;
  align-items: start;
}

.footer__brand img { width: 180px; margin-bottom: 0.15rem; }

.footer__brand .logo-signature {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.footer__tagline { color: var(--text-muted); font-size: 14px; }

.footer__links h4 {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__links li { margin-bottom: 0.25rem; }
.footer__links a { color: var(--text); font-size: 15px; }
.footer__links a:hover { color: var(--accent); }

.footer__social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer__social a { color: var(--text); }
.footer__social a:hover { color: var(--accent); }

.footer__bottom {
  background: var(--bg-section);
  text-align: center;
  padding: 1.25rem;
  font-size: 14px;
  color: var(--text-muted);
}

/* Nav backdrop (mobile) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 10048;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nav-backdrop--visible {
  display: block;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background var(--transition), transform var(--transition);
}

.whatsapp-float:hover {
  background: #1ea650;
  transform: scale(1.05);
}

/* Responsive — tablet & mobile */
@media (max-width: 992px) {
  :root {
    --header-h: var(--header-h-mobile);
  }

  html {
    scroll-padding-top: var(--header-h-mobile);
  }

  .header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    z-index: 10050;
  }

  .header.header--solid {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--border);
  }

  body.nav-open .header {
    z-index: 10050;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--border);
  }

  body.nav-open .whatsapp-float {
    z-index: 10030;
  }

  .header__inner {
    min-height: var(--header-h-mobile);
    padding-block: 0.5rem;
  }

  .header__logo {
    flex-shrink: 0;
    z-index: 1001;
  }

  .header__logo img {
    width: 56px;
  }

  .header__logo .logo-signature {
    font-size: 0.72rem;
    max-width: 7.5rem;
    white-space: normal;
    line-height: 1.05;
  }

  .header--solid .header__logo img {
    width: 56px;
  }

  .header--solid .header__logo .logo-signature {
    font-size: 0.72rem;
  }

  .header__toggle {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 10052;
  }

  /* Menú móvil: debajo de la barra (logo + hamburguesa), no detrás */
  .header__nav {
    display: none;
    position: fixed;
    top: var(--mobile-header-offset);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10051;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
    gap: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .header__nav--open {
    display: flex;
  }

  body.nav-open .header__nav.header__nav--open {
    z-index: 10051;
  }

  .header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .header__nav li {
    border-bottom: 1px solid var(--border);
  }

  .header__nav a {
    display: block;
    padding: 1.125rem 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
  }

  .header__nav a:hover,
  .header__nav a:focus-visible {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
  }

  .header__social {
    margin-left: 0;
    justify-content: center;
    padding-top: 0.5rem;
    gap: 1.5rem;
  }

  .header__social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
  }

  .section {
    padding: 48px 0;
  }

  .section__grid--empresa {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section__text .btn {
    float: none;
    display: block;
    width: 100%;
    text-align: center;
  }

  .section__text p {
    text-align: left;
  }

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

  .product-card {
    padding: 2rem 1rem 1.5rem;
    min-height: 220px;
  }

  .service-block,
  .service-block--reverse {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .service-block--reverse .service-block__img,
  .service-block--reverse .service-block__content {
    grid-column: auto;
    grid-row: auto;
  }

  .service-block__content {
    text-align: center;
  }

  .service-block__icon {
    margin-inline: auto;
  }

  .service-block__content h2 {
    text-align: center;
  }

  .service-block__content h2::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 120px;
  }

  .service-block__content .btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    text-align: center;
  }

  .section h2,
  .section__text h2 {
    text-align: center;
  }

  .section__divider:not(.section__divider--center) {
    margin-inline: auto;
  }

  .section__text {
    text-align: center;
  }

  .section__text p {
    text-align: center;
  }

  .service-block__content p {
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: auto;
  }

  .contact-map__frame {
    min-height: 300px;
    height: 55vw;
    max-height: 420px;
  }

  .contact-info-box {
    padding: 1.5rem 1.25rem;
  }

  .contact-form-wrap {
    padding: 2.5rem 1.25rem;
  }

  .product-detail__grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-lightbox__dialog { grid-template-columns: 1fr; }
  .product-related__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 0;
  }

  .footer__brand img {
    width: 140px;
    margin-inline: auto;
  }

  .footer__social {
    justify-content: center;
  }

  .hero__controls {
    bottom: 1.25rem;
    gap: 0.75rem;
  }

  .hero__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 993px) {
  .nav-backdrop,
  .nav-backdrop--visible {
    display: none !important;
  }

  body.nav-open {
    overflow: auto;
  }

  .header__nav,
  .header__nav.header__nav--open {
    display: flex !important;
    position: static;
    inset: auto;
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
    z-index: auto;
    flex-direction: row;
    align-items: center;
  }

  .header__nav ul {
    flex-direction: row;
    width: auto;
  }

  .header__nav li {
    border-bottom: none;
  }

  .header__nav a {
    display: inline;
    padding: 0;
    font-size: 18px;
    letter-spacing: normal;
    background: transparent;
  }

  .header__social {
    margin-left: 1rem;
    justify-content: flex-start;
    padding-top: 0;
    gap: 1rem;
  }

  .header__social a {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
  }
}

@media (max-width: 576px) {
  .container {
    width: min(1230px, calc(100% - 1.25rem));
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid { grid-template-columns: 1fr; }
  .product-intro__inner { flex-direction: column; align-items: stretch; }
  .product-intro__inner .btn { width: 100%; }
  .product-related__grid { grid-template-columns: 1fr; }

  .section h2 {
    font-size: 1.75rem;
  }

  .section__intro {
    text-align: left;
    margin-bottom: 2rem;
  }

  .product-card h3 {
    min-height: auto;
    font-size: 13px;
  }

  .footer__brand img {
    width: 120px;
  }
}

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