/* Hojalatería Miguel — estilos principales */
:root {
  --bg: #0b1220;
  --bg-elevated: #111b2e;
  --surface: #152238;
  --text: #e8eef8;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-deep: #ea580c;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --accent-border: rgba(245, 158, 11, 0.35);
  --accent-glow: rgba(245, 158, 11, 0.12);
  --line: rgba(148, 163, 184, 0.25);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .card__icon.is-live,
  .card__icon.is-live *,
  .section-head__icon.is-live,
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(245, 158, 11, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(56, 189, 248, 0.08), transparent 50%),
    var(--bg);
}

.form input,
.form textarea {
  cursor: text;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a[href],
button,
.btn,
.nav-toggle,
.site-nav a,
.link-arrow,
.logo,
.site-footer__necty {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0b1220;
  font-weight: 600;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
}

.shell {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  overflow: visible;
}

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

@media (min-width: 861px) {
  .site-nav {
    margin-left: auto;
  }
}

.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  overflow: visible;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}

.logo:focus {
  outline: none;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (hover: hover) {
  .logo:hover {
    opacity: 0.9;
  }
}

@media (hover: none) and (pointer: coarse) {
  .logo:active,
  .logo:focus {
    opacity: 1;
    outline: none;
    background: transparent;
  }
}

/* Slot fijo en el flex (44×44) → la franja no gana altura; el dibujo escala dentro y puede “salir” sin recorte */
.logo__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: visible;
}

/* Logo 1:1 WebP: img/hojalaterialogo.webp */
.logo__img {
  width: 44px;
  height: 44px;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: scale(1.96);
  transform-origin: center center;
}

.logo__text strong {
  font-weight: 700;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0;
}

.site-nav a:focus-visible {
  color: var(--text);
}

@media (hover: hover) {
  .site-nav a:hover {
    color: var(--text);
  }
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem !important;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid rgba(245, 158, 11, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
  .site-nav__cta:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.55);
    color: var(--accent) !important;
  }
}

.site-nav__cta-icon {
  flex-shrink: 0;
  display: flex;
  line-height: 0;
}

.site-nav__panel-foot {
  display: none;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-nav__login-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
  .site-nav__login-block:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.55);
  }
}

.site-nav__login-block-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.site-nav__login-block-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.site-nav__login-block-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.header__login-desktop {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
  .header__login-desktop:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.55);
  }
}

.header__login-desktop-icon {
  flex-shrink: 0;
  color: var(--accent);
  display: flex;
}

.header__login-desktop-title {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.header__login-desktop-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

@media (min-width: 861px) {
  .header__login-desktop {
    display: inline-flex;
  }
}

.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.24s ease, opacity 0.18s ease;
}

.nav-toggle__bar:nth-child(1) {
  transform: translate(-50%, calc(-50% - 5px));
}

.nav-toggle__bar:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle__bar:nth-child(3) {
  transform: translate(-50%, calc(-50% + 5px));
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 860px) {
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(11, 18, 32, 0.58);
    backdrop-filter: blur(3px);
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 52;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 1rem;
    left: auto;
    width: min(16.75rem, calc(100vw - 2rem));
    padding: 0.7rem 0.65rem 0.75rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(20, 31, 52, 0.98), rgba(15, 23, 42, 0.99));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    max-height: min(72vh, 400px);
    overflow-y: auto;
    margin-left: 0;
    z-index: 51;
  }

  .site-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 46%;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #fbbf24, var(--accent), var(--accent-deep), transparent);
    opacity: 0.7;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav__panel-foot {
    display: block;
    margin-top: 0.55rem;
    padding-top: 0.65rem;
  }

  .site-nav__spacer {
    display: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .site-nav__list a {
    padding: 0.52rem 0.62rem;
    border-radius: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
  }

  .site-nav__cta {
    justify-content: center;
    margin-top: 0.15rem;
    padding: 0.5rem 0.7rem !important;
    border-radius: 999px;
    font-size: 0.84rem !important;
  }

  .site-nav__login-block {
    padding: 0.62rem 0.7rem;
    border-radius: 10px;
  }

  .site-nav__login-block-title {
    font-size: 0.88rem;
  }

  .site-nav__login-block-sub {
    font-size: 0.72rem;
  }

  @media (hover: hover) {
    .site-nav__list a:hover {
      background: rgba(148, 163, 184, 0.08);
    }
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 920px);
  display: grid;
  align-items: start;
  align-content: start;
  padding-top: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #0a0f1a;
  overflow: hidden;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(11, 18, 32, 0.92) 0%,
    rgba(11, 18, 32, 0.55) 45%,
    rgba(11, 18, 32, 0.85) 100%
  );
  pointer-events: none;
}

.hero__media-picture,
.hero__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
}

.hero__media-img {
  object-fit: cover;
  object-position: center;
}

.hero__content {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: none;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero__title::before {
  content: "";
  display: block;
  width: clamp(3rem, 12vw, 5rem);
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, var(--accent), var(--accent-deep));
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(251, 191, 36, 0.25);
}

.hero__title-line {
  display: block;
}

.hero__title-line--sub {
  margin-top: 0.12em;
  font-size: 0.82em;
  font-weight: 600;
  color: rgba(232, 238, 248, 0.92);
}

.hero__title-accent {
  background: linear-gradient(105deg, #fde68a 0%, #fbbf24 35%, var(--accent) 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(251, 191, 36, 0.35));
}

.hero__title-highlight {
  color: #fbbf24;
  text-shadow:
    0 0 32px rgba(251, 191, 36, 0.45),
    0 2px 12px rgba(0, 0, 0, 0.4);
  border-bottom: 3px solid rgba(251, 191, 36, 0.55);
  padding-bottom: 0.06em;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title-accent {
    color: #fbbf24;
    filter: none;
  }
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 52ch;
  color: rgba(232, 238, 248, 0.9);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #0b1220;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.btn--primary:focus-visible {
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.45);
}

@media (hover: hover) {
  .btn--primary:hover {
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.45);
  }
}

.btn--ghost {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border-color: var(--line);
}

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

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

/* Móvil: sin recuadro gris ni hover pegado al pulsar */
@media (hover: none) and (pointer: coarse) {
  .site-nav__list a:hover,
  .site-nav__list a:focus {
    background: transparent !important;
  }

  .site-nav a:hover {
    color: var(--muted);
  }

  .site-nav__login-block:hover,
  .site-nav__login-block:focus,
  .header__login-desktop:hover,
  .header__login-desktop:focus {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
  }

  .btn--primary:hover,
  .btn--primary:focus:not(:focus-visible) {
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
  }

  .btn--ghost:hover,
  .btn--ghost:focus:not(:focus-visible) {
    background: rgba(148, 163, 184, 0.08);
    border-color: var(--line);
  }

  .btn:focus:not(:focus-visible),
  .nav-toggle:focus:not(:focus-visible),
  button:focus:not(:focus-visible) {
    outline: none;
  }

  .nav-toggle:active,
  .nav-toggle:focus {
    background: var(--surface);
  }
}

.btn__spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(11, 18, 32, 0.25);
  border-top-color: #0b1220;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.is-loading .btn__label {
  opacity: 0.85;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

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

/* Bands & sections */
.band {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.band--muted {
  background: rgba(17, 27, 46, 0.65);
  border-block: 1px solid var(--line);
}

#servicios.band {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.band--accent {
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, transparent 32%),
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(17, 27, 46, 0.92));
  border-block: 1px solid var(--accent-border);
}

.band--contact {
  background: rgba(15, 23, 42, 0.55);
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.4rem);
  margin: 0 0 0.75rem;
}

.section-head__title--with-icon {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

#galeria .section-head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  text-align: left;
  flex-wrap: wrap;
}

#galeria .section-head--split .section-head__body {
  flex: 1 1 16rem;
  min-width: min(100%, 280px);
}

#galeria .section-head--split .section-head__title--with-icon {
  justify-content: flex-start;
  width: auto;
  text-align: left;
  margin-bottom: 0.5rem;
}

#galeria .section-head--split .section-head__desc {
  margin: 0;
  max-width: 38rem;
}

#galeria .section-head__cta {
  flex: 0 0 auto;
  align-self: center;
}

.btn-gallery-more {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.65rem 0.65rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(21, 34, 56, 0.95), rgba(11, 18, 32, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--text);
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 158, 11, 0.08);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-gallery-more::before,
.btn-gallery-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.btn-gallery-more::before {
  background:
    radial-gradient(ellipse 90% 55% at 50% 110%, rgba(56, 189, 248, 0.28) 0%, transparent 68%),
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(56, 189, 248, 0.14) 28%,
      rgba(245, 158, 11, 0.1) 50%,
      rgba(56, 189, 248, 0.16) 72%,
      transparent 100%
    );
  background-size: 100% 100%, 240% 100%;
  background-position: center, 0% 50%;
  animation: btn-gallery-water 3.6s ease-in-out infinite;
}

.btn-gallery-more::after {
  border: 1px solid rgba(56, 189, 248, 0.22);
  animation: btn-gallery-ripple 2.8s ease-out infinite;
}

.btn-gallery-more__text,
.btn-gallery-more__icon {
  position: relative;
  z-index: 1;
}

@keyframes btn-gallery-water {
  0%,
  100% {
    background-position: center, 0% 50%;
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    background-position: center, 100% 50%;
    opacity: 1;
    transform: scale(1.012);
  }
}

@keyframes btn-gallery-ripple {
  0% {
    box-shadow:
      0 0 0 0 rgba(56, 189, 248, 0.38),
      inset 0 -10px 28px rgba(56, 189, 248, 0.1);
  }

  60% {
    box-shadow:
      0 0 0 16px rgba(56, 189, 248, 0),
      inset 0 -14px 36px rgba(56, 189, 248, 0.16);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(56, 189, 248, 0),
      inset 0 -10px 28px rgba(56, 189, 248, 0.1);
  }
}

.btn-gallery-more__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
}

.btn-gallery-more__label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.btn-gallery-more__hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-gallery-more__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24, var(--accent), var(--accent-deep));
  color: #0b1220;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gallery-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-gallery-more:focus-visible::before,
.btn-gallery-more:focus-visible::after,
.btn-gallery-more:active::before,
.btn-gallery-more:active::after {
  animation-play-state: paused;
}

@media (hover: hover) {
  .btn-gallery-more:hover {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 16px 40px rgba(0, 0, 0, 0.4),
      0 0 24px rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
  }

  .btn-gallery-more:hover::before,
  .btn-gallery-more:hover::after {
    animation-play-state: paused;
  }

  .btn-gallery-more:hover .btn-gallery-more__icon {
    transform: translateX(2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
  }
}

.btn-gallery-more:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
    padding-top: clamp(1.25rem, 4vh, 2rem);
    padding-bottom: 2rem;
  }

  .hero__content {
    padding-top: 0.5rem;
  }

  .hero__lead {
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  #galeria.band {
    padding-top: 2.25rem;
  }

  #galeria .section-head--split {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  /* Evita que el bloque de texto estire y separe el botón (flex-grow: 1 en desktop) */
  #galeria .section-head--split .section-head__body {
    flex: 0 0 auto;
  }

  #galeria .section-head--split .section-head__title--with-icon {
    margin-bottom: 0.35rem;
  }

  #galeria .section-head--split .section-head__desc {
    margin-bottom: 0;
  }

  #galeria .section-head__cta {
    align-self: stretch;
    margin-top: 0;
  }

  #galeria .section-head__cta.reveal {
    transform: translateY(12px);
  }

  #galeria .section-head__cta.reveal.is-visible {
    transform: translateY(0);
  }

  #galeria .gallery {
    margin-top: 0;
  }

  #galeria .gallery__item {
    margin-bottom: 0.75rem;
  }

  .btn-gallery-more {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0.7rem 0.65rem 1rem;
  }
}

#ubicacion .section-head__title--with-icon,
#contacto .section-head__title--with-icon {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.section-intro {
  --section-icon-size: 2.35rem;
  --section-icon-gap: 0.65rem;
}

.section-intro > .section-head__desc,
.section-intro > .address,
.section-intro > p {
  margin-left: calc(var(--section-icon-size) + var(--section-icon-gap));
  max-width: calc(100% - var(--section-icon-size) - var(--section-icon-gap));
}

.section-intro > .contact-card-wrap {
  margin-left: auto;
  margin-right: auto;
}

.section-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  color: var(--accent);
}

.section-head__icon svg,
.section-head__icon-img {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.section-head__icon-img {
  object-fit: contain;
  object-position: center;
}

.section-head__title-text.reveal {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .section-head__icon.is-live {
    -webkit-animation: section-icon-float 2.4s ease-in-out infinite;
    animation: section-icon-float 2.4s ease-in-out infinite;
    -webkit-animation-play-state: running;
    animation-play-state: running;
  }

  .section-head__icon--ubicacion.is-live {
    -webkit-animation-duration: 2.2s;
    animation-duration: 2.2s;
  }

  .section-head__icon--contacto.is-live {
    -webkit-animation-duration: 2.5s;
    animation-duration: 2.5s;
    -webkit-animation-delay: 0.12s;
    animation-delay: 0.12s;
  }

  .section-head__icon--galeria.is-live {
    -webkit-animation-duration: 2.7s;
    animation-duration: 2.7s;
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
  }

  .section-head__icon--productos.is-live {
    -webkit-animation-duration: 2.4s;
    animation-duration: 2.4s;
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
  }
}

@keyframes section-icon-float {
  0%, 100% {
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
    opacity: 0.88;
  }
  50% {
    -webkit-transform: translateY(-5px) scale(1.12);
    transform: translateY(-5px) scale(1.12);
    opacity: 1;
  }
}

.section-head__desc {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.hero__lead,
#servicios .section-head__desc,
#productos .section-head__desc,
.card__text,
#nosotros .split__text > p,
#contacto .section-head__desc {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.owner-photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(100%, 320px);
  margin-inline: auto;
}

.owner-photo__img,
.owner-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0 0 16px 16px;
}

.owner-photo__caption {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 861px) {
  #nosotros .owner-photo {
    margin-inline: 0 0;
    margin-left: auto;
  }

  .owner-photo__img,
  .owner-photo img {
    border-radius: 0 0 18px 18px;
  }
}

@media (max-width: 860px) {
  .owner-photo {
    max-width: min(270px, 78vw);
  }
}

.cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 0.8rem 1.1rem 0.85rem;
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.card__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Evita que el reveal (transform del padre) congele animaciones SVG en iOS */
.card__head {
  transform: none;
}

.cards .card__title.reveal,
.cards .card__title.reveal.is-visible {
  transform: translate3d(0, 18px, 0);
}

.cards .card__title.reveal.is-visible {
  transform: translate3d(0, 0, 0);
}

/* —— Icono: cinta métrica —— */
.card-icon__tape {
      transform-origin: 20px 25px;
  -webkit-animation: tape-extend 3.2s ease-in-out infinite;
  animation: tape-extend 3.2s ease-in-out infinite;
}

.card-icon__hook {
  transform-origin: 44px 25px;
  -webkit-animation: hook-swing 3.2s ease-in-out infinite;
  animation: hook-swing 3.2s ease-in-out infinite;
}

@keyframes tape-extend {
  0%, 100% { -webkit-transform: scaleX(0.35); transform: scaleX(0.35); opacity: 0.7; }
  45%, 55% { -webkit-transform: scaleX(1); transform: scaleX(1); opacity: 1; }
}

@keyframes hook-swing {
  0%, 100% { -webkit-transform: rotate(-8deg); transform: rotate(-8deg); }
  45%, 55% { -webkit-transform: rotate(4deg); transform: rotate(4deg); }
}

/* —— Icono: terminaciones —— */
.card-icon__seal {
  -webkit-animation: seal-draw 3s ease-in-out infinite;
  animation: seal-draw 3s ease-in-out infinite;
}

.card-icon__flash {
  transform-origin: 34px 18px;
  -webkit-animation: flash-pulse 3s ease-in-out infinite;
  animation: flash-pulse 3s ease-in-out infinite;
}

@keyframes seal-draw {
  0%, 20% { stroke-dashoffset: 40; opacity: 0.4; }
  50%, 70% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 40; opacity: 0.4; }
}

@keyframes flash-pulse {
  0%, 30%, 100% { opacity: 0.35; }
  55% { opacity: 1; }
}

/* —— Icono: canaleta y lluvia —— */
.card-icon__drop {
  opacity: 0;
  -webkit-animation: rain-fall 2.4s ease-in infinite;
  animation: rain-fall 2.4s ease-in infinite;
}

.card-icon__drop--1 { animation-delay: 0s; }
.card-icon__drop--2 { animation-delay: 0.55s; }
.card-icon__drop--3 { animation-delay: 1.1s; }

@keyframes rain-fall {
  0% { opacity: 0; -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0); }
  15% { opacity: 1; }
  70% { opacity: 0.85; -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); }
  100% { opacity: 0; -webkit-transform: translate3d(0, 14px, 0); transform: translate3d(0, 14px, 0); }
}

/* —— Icono: construcción —— */
.card-icon__wall-l {
  transform-origin: 17px 36px;
  -webkit-animation: build-rise 4.5s ease-in-out infinite;
  animation: build-rise 4.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.card-icon__wall-r {
  transform-origin: 31px 36px;
  -webkit-animation: build-rise 4.5s ease-in-out infinite;
  animation: build-rise 4.5s ease-in-out infinite;
  animation-delay: 0.45s;
}

.card-icon__roof {
  transform-origin: 24px 24px;
  -webkit-animation: roof-set 4.5s ease-in-out infinite;
  animation: roof-set 4.5s ease-in-out infinite;
  animation-delay: 0.7s;
}

.card-icon__door {
  -webkit-animation: door-show 4.5s ease-in-out infinite;
  animation: door-show 4.5s ease-in-out infinite;
  animation-delay: 0.95s;
}

.card-icon__crane {
  transform-origin: 36px 8px;
  -webkit-animation: crane-sway 4.5s ease-in-out infinite;
  animation: crane-sway 4.5s ease-in-out infinite;
}

@keyframes build-rise {
  0%, 12% { -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); opacity: 0; }
  28%, 85% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; }
  100% { -webkit-transform: translate3d(0, 6px, 0); transform: translate3d(0, 6px, 0); opacity: 0.5; }
}

@keyframes roof-set {
  0%, 28% { -webkit-transform: translate3d(0, -8px, 0); transform: translate3d(0, -8px, 0); opacity: 0; }
  48%, 85% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 1; }
  100% { -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0); opacity: 0.6; }
}

@keyframes door-show {
  0%, 42% { opacity: 0; }
  58%, 85% { opacity: 1; }
  100% { opacity: 0.5; }
}

@keyframes crane-sway {
  0%, 100% { -webkit-transform: rotate(-4deg); transform: rotate(-4deg); }
  50% { -webkit-transform: rotate(4deg); transform: rotate(4deg); }
}

/* iOS: animaciones sin transform en SVG (más fiables) */
@media (hover: none) and (pointer: coarse) {
  .card-icon__tape {
    -webkit-animation-name: icon-fade-pulse;
    animation-name: icon-fade-pulse;
  }

  .card-icon__hook,
  .card-icon__wall-l,
  .card-icon__wall-r,
  .card-icon__roof,
  .card-icon__crane {
    -webkit-animation-name: icon-fade-pulse;
    animation-name: icon-fade-pulse;
  }

  .card-icon__drop {
    -webkit-animation-name: icon-drop-pulse;
    animation-name: icon-drop-pulse;
  }

  .card-icon__flash {
    -webkit-animation-name: icon-fade-pulse;
    animation-name: icon-fade-pulse;
  }
}

@keyframes icon-fade-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes icon-drop-pulse {
  0%, 100% { opacity: 0; }
  35%, 65% { opacity: 1; }
}

.card__title {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
}

/* Productos destacados — carrusel horizontal */
#productos.band {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

#productos .section-head {
  margin-bottom: clamp(0.85rem, 1.5vw, 1.15rem);
}

#productos + #galeria.band {
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

#productos {
  position: relative;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

#productos::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(245, 158, 11, 0.1), transparent 68%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(56, 189, 248, 0.06), transparent 70%);
}

#productos .shell {
  position: relative;
  z-index: 1;
}

.product-carousel {
  --product-gap: 0.75rem;
  --product-visible: 5;
  --product-card-w: 160px;
  --product-side-pad: 0px;
  width: 100%;
}

.product-carousel__rail {
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  border-top: 3px solid var(--accent);
  padding-top: 0.85rem;
}

.product-carousel__rail.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.product-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--product-gap);
  width: max-content;
  padding-inline: var(--product-side-pad);
}

.product-carousel__card {
  position: relative;
  display: flex;
  flex: 0 0 var(--product-card-w);
  width: var(--product-card-w);
  z-index: 1;
}

.product-carousel__figure {
  margin: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(21, 34, 56, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.product-carousel__thumb {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(245, 158, 11, 0.22);
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-carousel__thumb:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}

.product-carousel__thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-carousel__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.product-carousel__meta {
  text-align: center;
}

.product-carousel__name {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.product-carousel__desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .product-carousel {
    --product-visible: 4;
  }
}

@media (max-width: 767px) {
  .product-carousel {
    --product-visible: 3;
  }
}

.product-lightbox {
  --product-lightbox-pad: 1.5rem;
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--product-lightbox-pad) 1.25rem;
  overflow-y: auto;
}

.product-lightbox[hidden] {
  display: none !important;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(6px);
}

.product-lightbox__panel {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(92vw, 480px);
  margin: 0 auto;
  animation: product-lightbox-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-lightbox__media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1220;
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-lightbox {
    --product-lightbox-header: 5.25rem;
    --product-lightbox-gap: 1.5rem;
    align-items: flex-start;
    padding: calc(var(--product-lightbox-header) + var(--product-lightbox-gap)) 1.25rem var(--product-lightbox-pad);
  }

  .product-lightbox__panel {
    max-width: min(88vw, 420px);
  }

  .product-lightbox__figure {
    width: min(
      80vw,
      380px,
      calc(100dvh - var(--product-lightbox-header) - var(--product-lightbox-gap) - var(--product-lightbox-pad))
    );
  }
}

.product-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.95);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-lightbox__close:hover {
  background: rgba(21, 34, 56, 0.98);
  border-color: var(--accent);
}

.product-lightbox__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-lightbox__figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(88vw, 440px, calc(100dvh - var(--product-lightbox-pad) * 2));
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.product-lightbox__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-lightbox__caption {
  flex-shrink: 0;
  min-width: 0;
  padding: 0.7rem 1rem 0.95rem;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  width: 100%;
  box-sizing: border-box;
}

.product-lightbox__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

body.product-lightbox-open,
body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery__thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
}

.gallery__thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-lightbox {
  --gallery-lightbox-pad: 1.5rem;
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gallery-lightbox-pad) 1.25rem;
  overflow-y: auto;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(6px);
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(94vw, 760px);
  margin: 0 auto;
  animation: product-lightbox-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox__media {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #0b1220;
  overflow: hidden;
}

.gallery-lightbox__media.is-land {
  aspect-ratio: 16 / 9;
}

.gallery-lightbox__media.is-portrait {
  aspect-ratio: 9 / 16;
}

.gallery-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.95);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__close:hover {
  background: rgba(21, 34, 56, 0.98);
  border-color: var(--accent);
}

.gallery-lightbox__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-lightbox__figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__figure:has(.gallery-lightbox__media.is-land) {
  width: min(92vw, 720px, calc((100dvh - var(--gallery-lightbox-pad) * 2) * 16 / 9));
}

.gallery-lightbox__figure:has(.gallery-lightbox__media.is-portrait) {
  width: min(88vw, 420px, calc((100dvh - var(--gallery-lightbox-pad) * 2) * 9 / 16));
}

.gallery-lightbox__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-lightbox__caption {
  flex-shrink: 0;
  min-width: 0;
  padding: 0.7rem 1rem 0.95rem;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  width: 100%;
  box-sizing: border-box;
}

.gallery-lightbox__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox__panel {
    animation: none;
  }
}

@keyframes product-lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-lightbox__panel {
    animation: none;
  }
}

@media (max-width: 479px) {
  .product-carousel {
    --product-gap: 0.5rem;
  }

  .product-carousel__rail::before,
  .product-carousel__rail::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.25rem;
    z-index: 2;
    pointer-events: none;
  }

  .product-carousel__rail::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 15%, transparent 100%);
  }

  .product-carousel__rail::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 15%, transparent 100%);
  }
}

/* Gallery — masonry por columnas (16:9 y 9:16) */
.gallery {
  columns: 3;
  column-gap: 1rem;
}

.gallery__item {
  position: relative;
  margin: 0 0 1rem;
  width: 100%;
  break-inside: avoid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: middle;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}

.gallery__item--land img {
  aspect-ratio: 16 / 9;
}

.gallery__item--portrait img {
  aspect-ratio: 9 / 16;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(11, 18, 32, 0.92));
}

@media (max-width: 900px) {
  .gallery {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .gallery {
    columns: 1;
  }
}

/* Galería completa (página dedicada) */
.gallery--full {
  columns: 4;
  column-gap: 1.15rem;
}

@media (max-width: 1100px) {
  .gallery--full {
    columns: 3;
  }
}

@media (max-width: 900px) {
  .gallery--full {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .gallery--full {
    columns: 1;
  }
}

.gallery-page {
  min-height: 100vh;
}

.gallery-page__header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.gallery-page__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.gallery-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.32rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(226, 232, 240, 0.95);
  text-decoration: none;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.gallery-page__back-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(251, 191, 36, 0.95);
}

.gallery-page__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .gallery-page__back:hover {
    color: #fff;
    border-color: rgba(245, 158, 11, 0.65);
    background: rgba(245, 158, 11, 0.16);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
  }
}

@media (max-width: 640px) {
  .gallery-page__header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.85rem;
  }

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

  .gallery-page__back {
    display: grid;
    place-items: center;
    gap: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 10px;
  }

  .gallery-page__back-arrow {
    transform: translateY(-0.06em);
  }
}

.gallery-page__main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.gallery-page__intro {
  margin-bottom: 2rem;
}

.gallery-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.gallery-page__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.gallery-page__count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.85);
}

.gallery-page__foot {
  margin: 2.5rem 0 0;
  text-align: center;
}

.gallery-page__foot .btn {
  padding: 0.62rem 1.25rem;
  font-size: 0.92rem;
}

.site-footer--minimal {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer--minimal .site-footer__legal {
  text-align: center;
}

/* Split */
.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split__panel {
  justify-self: end;
  width: min(100%, 420px);
}

.split--map {
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__panel {
    justify-self: stretch;
  }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.quote {
  margin: 0;
  padding: 1.05rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.quote p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.quote footer {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (min-width: 861px) {
  .quote {
    padding: 1.2rem 1.35rem;
  }

  .quote footer {
    margin-top: 0.7rem;
  }
}

.address {
  font-style: normal;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.link-arrow::after {
  content: " →";
}

#ubicacion.band {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (min-width: 861px) {
  #ubicacion .split--map {
    align-items: stretch;
    gap: 1.35rem;
  }

  #ubicacion .section-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
  }

  #ubicacion .map-wrap {
    align-self: center;
    width: 100%;
  }
}

@media (min-width: 861px) and (max-width: 1280px) {
  #ubicacion.band {
    padding-block: clamp(2.25rem, 4vw, 3.5rem);
  }

  #ubicacion .section-intro {
    min-height: 14rem;
  }

  #ubicacion .map-wrap {
    aspect-ratio: 16 / 9;
    height: 14rem;
    max-height: 14rem;
  }

  #ubicacion .section-head__title {
    margin-bottom: 0.45rem;
  }

  #ubicacion .section-intro > .address {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  #ubicacion .section-intro > p {
    margin-top: 0.35rem;
    margin-bottom: 0;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}

@media (min-width: 861px) {
  .contact-grid {
    align-items: stretch;
  }

  .contact-grid > .section-intro {
    display: flex;
    flex-direction: column;
  }

  .contact-grid > .section-intro > .contact-card-wrap {
    margin-top: auto;
    margin-bottom: auto;
    align-self: center;
  }
}

#servicios,
#productos,
#galeria,
#nosotros,
#ubicacion,
#contacto,
#form-contacto {
  scroll-margin-top: calc(5rem + env(safe-area-inset-top, 0px));
}

@media (max-width: 860px) {
  #servicios,
  #productos,
  #galeria,
  #nosotros,
  #ubicacion,
  #contacto,
  #form-contacto {
    scroll-margin-top: calc(5.1rem + env(safe-area-inset-top, 0px));
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  #contacto .contact-grid > .section-intro {
    display: contents;
  }

  #contacto .contact-card-wrap {
    order: 1;
    margin-top: 0;
  }

  #contacto #contacto-title {
    order: 2;
  }

  #contacto .section-head__desc {
    order: 3;
  }

  #contacto #form-contacto {
    order: 4;
  }
}

.contact-card-wrap {
  position: relative;
  width: 100%;
  max-width: min(100%, 21.5rem);
  margin-top: 1.15rem;
}

.contact-card-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.95rem;
  z-index: 4;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 1 L0 20 L50 1 L100 20 L100 1' fill='none' stroke='%23ffffff' stroke-width='1.25'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}

.contact-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  justify-content: center;
  transform: translate(-50%, -46%);
  pointer-events: none;
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--accent);
  border-radius: 50%;
  background: rgba(17, 27, 46, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.contact-card__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.contact-card {
  position: relative;
  width: 100%;
  padding: 1.15rem 1.2rem 1.55rem;
  border-radius: 1.25rem 1.25rem 0 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(24, 38, 62, 0.98) 0%, rgba(17, 27, 46, 0.99) 55%, rgba(15, 23, 42, 1) 100%);
  border: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 0.95rem),
    100% 100%,
    50% calc(100% - 0.95rem),
    0 100%,
    0 calc(100% - 0.95rem)
  );
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 52%;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, #fbbf24, var(--accent), var(--accent-deep), transparent);
  opacity: 0.65;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% -6%, rgba(245, 158, 11, 0.07), transparent 68%);
  pointer-events: none;
}

.contact-card__head {
  position: relative;
  z-index: 1;
  margin-bottom: 0.95rem;
}

.contact-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
}

.contact-card__tagline {
  margin: 0.4rem auto 0;
  max-width: 16.5rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
}

.contact-card__schedule {
  position: relative;
  z-index: 1;
  width: 86%;
  max-width: 15.5rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-card__slot {
  position: relative;
  min-height: 2.65rem;
  padding: 0;
  border-radius: 0 1.15rem 1.15rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f8 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 0;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.contact-card__slot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: 1.55rem;
  height: 1.9rem;
  border-radius: 0 50% 50% 0;
  background: linear-gradient(145deg, rgba(17, 27, 46, 0.98), rgba(24, 38, 62, 0.96));
  border: 2px solid rgba(245, 158, 11, 0.38);
  border-left: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-50%);
  pointer-events: none;
}

.contact-card__slot-body {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 2.65rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.42rem 0.75rem;
  text-align: center;
}

.contact-card__days {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
}

.contact-card__hours {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.contact-card__foot {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.contact-card__closed {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.contact-card__cta {
  margin: 0.6rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.contact-card__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0b1220;
  text-decoration: none;
  background: linear-gradient(135deg, #fbbf24 0%, var(--accent) 48%, var(--accent-deep) 100%);
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    0 8px 18px rgba(245, 158, 11, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card__phone:hover,
.contact-card__phone:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(245, 158, 11, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@media (min-width: 861px) {
  .contact-card-wrap {
    max-width: 23.5rem;
  }

  .contact-card {
    padding: 1.2rem 1.45rem 1.65rem;
  }

  .contact-card__schedule {
    width: 82%;
    max-width: 16rem;
    gap: 0.6rem;
  }

  .contact-card__slot {
    min-height: 2.75rem;
  }

  .contact-card__slot::before {
    width: 1.65rem;
    height: 2rem;
  }

  .contact-card__slot-body {
    min-height: 2.75rem;
    padding: 0.45rem 0.85rem;
  }
}

@media (max-width: 420px) {
  .contact-card-wrap {
    margin-top: 1rem;
  }

  .contact-card {
    padding: 1rem 1rem 1.45rem;
  }

  .contact-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .contact-card__icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .contact-card__schedule {
    width: 90%;
    max-width: 14.5rem;
  }

  .contact-card__tagline {
    font-size: 0.72rem;
  }

  .contact-card__slot {
    min-height: 2.5rem;
  }

  .contact-card__slot::before {
    width: 1.4rem;
    height: 1.75rem;
  }

  .contact-card__slot-body {
    min-height: 2.5rem;
  }

  .contact-card__days {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
}

.form {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color-scheme: dark;
}

.form.form--idle.is-visible input,
.form.form--idle.is-visible select,
.form.form--idle.is-visible textarea {
  animation: form-field-idle 2.8s ease-in-out infinite;
}

@keyframes form-field-idle {
  0%,
  100% {
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: none;
  }

  50% {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow:
      0 0 0 3px rgba(245, 158, 11, 0.1),
      0 0 16px rgba(245, 158, 11, 0.14);
  }
}

.form__row {
  margin-bottom: 1.1rem;
}

.form__row--half {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .form__row--half {
    grid-template-columns: 1fr;
  }
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.form__row:has(#mensaje) {
  margin-bottom: 0.5rem;
}

.form__counter {
  text-align: right;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.form__optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85em;
}

.form__row--check {
  margin-top: 0;
  margin-bottom: 0.4rem;
  -webkit-tap-highlight-color: transparent;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 400;
  margin-bottom: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.form__check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #f59e0b;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.form__check input[type="checkbox"]:focus {
  outline: none;
  box-shadow: none;
}

.form__check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.55);
  outline-offset: 2px;
}

.form__check-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.form__check-text a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
  -webkit-tap-highlight-color: transparent;
}

.form__check-text a:hover {
  color: #fde68a;
}

@media (hover: none) and (pointer: coarse) {
  .form__check-text a:hover,
  .form__check-text a:active,
  .form__check-text a:focus {
    color: #fbbf24;
    background: transparent;
    outline: none;
  }

  .form__check:active,
  .form__check:focus-within {
    background: transparent;
  }

  .form__check input[type="checkbox"]:focus,
  .form__check input[type="checkbox"]:active {
    outline: none;
    box-shadow: none;
  }

  .form__row--check.is-invalid .form__check input[type="checkbox"] {
    outline: 2px solid rgba(239, 68, 68, 0.65);
    outline-offset: 2px;
  }
}

.form__row--check.is-invalid .form__check-text {
  color: #fecaca;
}

.form__row--check.is-invalid .form__check input[type="checkbox"] {
  outline: 2px solid rgba(239, 68, 68, 0.65);
  outline-offset: 2px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.65);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form select {
  width: 100%;
  padding: 0.75rem 2.25rem 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: #0a101c;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  color-scheme: dark;
  appearance: auto;
}

.form select:invalid {
  color: var(--muted);
}

.form select option {
  background-color: #0b1220;
  color: #f1f5f9;
}

.form select option:checked {
  background-color: #1e3a5f;
  color: #ffffff;
}

.form select option[disabled] {
  color: #94a3b8;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.55);
  outline-offset: 2px;
}

.form select:focus-visible {
  border-color: rgba(245, 158, 11, 0.65);
  background-color: #0d1524;
}

.form__status {
  min-height: 1.15rem;
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
}

.form__status.is-ok {
  color: #86efac;
}

.form__status.is-err {
  color: #fca5a5;
}

.form__status.is-err.is-attn {
  animation: form-status-attn 0.55s ease;
}

.form__row.is-invalid > label,
.form__row--half > div.is-invalid > label {
  color: #fca5a5;
}

.form__row.is-invalid input,
.form__row.is-invalid select,
.form__row.is-invalid textarea,
.form__row--half > div.is-invalid input,
.form__row--half > div.is-invalid select,
.form__row--half > div.is-invalid textarea {
  border-color: #f87171;
}

.form__row.is-field-ripple input,
.form__row.is-field-ripple select,
.form__row.is-field-ripple textarea,
.form__row--half > div.is-field-ripple input,
.form__row--half > div.is-field-ripple select,
.form__row--half > div.is-field-ripple textarea {
  animation: form-field-ripple 0.95s ease-out 2;
}

@keyframes form-field-ripple {
  0% {
    border-color: #f87171;
    box-shadow:
      0 0 0 0 rgba(248, 113, 113, 0.7),
      0 0 0 0 rgba(248, 113, 113, 0.35);
  }
  45% {
    border-color: #ef4444;
    box-shadow:
      0 0 0 10px rgba(248, 113, 113, 0),
      0 0 0 20px rgba(248, 113, 113, 0);
  }
  100% {
    border-color: rgba(248, 113, 113, 0.85);
    box-shadow:
      0 0 0 0 rgba(248, 113, 113, 0),
      0 0 0 0 rgba(248, 113, 113, 0);
  }
}

@keyframes form-status-attn {
  0%,
  100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-5px);
  }
  36% {
    transform: translateX(5px);
  }
  54% {
    transform: translateX(-3px);
  }
  72% {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-gallery-more::before,
  .btn-gallery-more::after {
    animation: none;
  }

  .form.form--idle.is-visible input,
  .form.form--idle.is-visible select,
  .form.form--idle.is-visible textarea {
    animation: none;
  }

  .form.form--idle input,
  .form.form--idle select,
  .form.form--idle textarea {
    animation: none;
  }

  .form__row.is-field-ripple input,
  .form__row.is-field-ripple select,
  .form__row.is-field-ripple textarea,
  .form__row--half > div.is-field-ripple input,
  .form__row--half > div.is-field-ripple select,
  .form__row--half > div.is-field-ripple textarea {
    animation: none;
    outline: 2px solid #f87171;
    outline-offset: 2px;
  }

  .form__status.is-err.is-attn {
    animation: none;
    font-weight: 700;
  }
}

/* Toast envío exitoso */
.send-toast {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.send-toast[hidden] {
  display: none !important;
}

.send-toast.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 22, 0.55);
  animation: send-toast-backdrop 2s ease forwards;
}

.send-toast__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 18rem;
  padding: 1.35rem 1.6rem 1.25rem;
  text-align: center;
  color: #ecfdf5;
  background: linear-gradient(155deg, #14532d 0%, #166534 55%, #15803d 100%);
  border: 1px solid #4ade80;
  border-radius: 18px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(74, 222, 128, 0.25),
    0 0 40px rgba(34, 197, 94, 0.35);
  opacity: 0;
  transform: scale(0.88) translateY(16px);
}

.send-toast.is-active .send-toast__card {
  position: relative;
  z-index: 1;
  animation: send-toast-pop 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.send-toast__icon-wrap {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.35rem;
}

.send-toast__plane {
  width: 100%;
  height: 100%;
  color: #bbf7d0;
  opacity: 0;
  transform: translate(12px, 14px) rotate(-18deg) scale(0.75);
}

.send-toast.is-active .send-toast__plane {
  animation: send-toast-plane 2s ease forwards;
}

.send-toast__trail {
  opacity: 0;
}

.send-toast.is-active .send-toast__trail {
  animation: send-toast-trail 2s ease forwards;
}

.send-toast__check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  color: #86efac;
}

.send-toast__check svg {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
}

.send-toast.is-active .send-toast__check {
  animation: send-toast-check 2s ease forwards;
}

.send-toast__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.send-toast__sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #bbf7d0;
}

@keyframes send-toast-backdrop {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes send-toast-pop {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(16px);
  }
  10% {
    opacity: 1;
    transform: scale(1.02) translateY(0);
  }
  18% {
    transform: scale(1) translateY(0);
  }
  78% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
  }
}

@keyframes send-toast-plane {
  0% {
    opacity: 0;
    transform: translate(12px, 14px) rotate(-18deg) scale(0.75);
  }
  12% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  38% {
    opacity: 1;
    transform: translate(6px, -10px) rotate(8deg) scale(1.05);
  }
  52% {
    opacity: 0;
    transform: translate(18px, -28px) rotate(14deg) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translate(18px, -28px) rotate(14deg) scale(0.7);
  }
}

@keyframes send-toast-trail {
  0%,
  10% {
    opacity: 0;
    stroke-dashoffset: 24;
  }
  20% {
    opacity: 0.55;
    stroke-dashoffset: 12;
  }
  45% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes send-toast-check {
  0%,
  44% {
    opacity: 0;
    transform: scale(0.5);
  }
  54% {
    opacity: 1;
    transform: scale(1.12);
  }
  62% {
    transform: scale(1);
  }
  78% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .send-toast.is-active .send-toast__card,
  .send-toast.is-active .send-toast__plane,
  .send-toast.is-active .send-toast__trail,
  .send-toast.is-active .send-toast__check {
    animation: send-toast-pop-reduced 2s ease forwards;
  }

  .send-toast.is-active .send-toast__plane {
    opacity: 0;
  }

  .send-toast.is-active .send-toast__check {
    animation: send-toast-check-reduced 2s ease forwards;
  }

  @keyframes send-toast-pop-reduced {
    0%,
    100% {
      opacity: 0;
    }
    8%,
    82% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @keyframes send-toast-check-reduced {
    0%,
    100% {
      opacity: 0;
    }
    8%,
    82% {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.97);
}

.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.site-footer__muted {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  opacity: 0.85;
}

.site-footer__contact-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__contact-item {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer__contact-item > span,
.site-footer__contact-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.site-footer__contact-item a {
  text-decoration: none;
  color: var(--muted);
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}

.site-footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.site-footer__contact-icon svg {
  display: block;
  shape-rendering: geometricPrecision;
}

@media (hover: hover) {
  .site-footer__contact-item a:hover {
    color: var(--accent);
  }

  .site-footer__contact-item a:hover .site-footer__contact-icon {
    background: rgba(245, 158, 11, 0.25);
  }
}

.site-footer__legal {
  padding-block: 1.25rem 1rem;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.site-footer__legal-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.9;
  max-width: 52ch;
  margin-inline: auto;
}

.site-footer__credits {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}

.site-footer__necty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.35rem 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

.site-footer__necty strong {
  color: var(--text);
  font-weight: 600;
}

.site-footer__necty-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .site-footer__necty:hover {
    color: var(--accent);
  }

  .site-footer__necty:hover strong {
    color: var(--accent);
  }
}

@media (hover: none) and (pointer: coarse) {
  .site-footer__contact-item a:focus,
  .site-footer__necty:focus {
    outline: none;
  }
}

@media (max-width: 560px) {
  .site-footer__main {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* Página términos y datos personales */
.legal-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 0 3rem;
  background: var(--bg, #0b1220);
  color: var(--text, #f1f5f9);
}

.legal-page__inner {
  max-width: 42rem;
}

.legal-page__back {
  margin: 0 0 1.25rem;
}

.legal-page__back a {
  color: #fbbf24;
  text-decoration: none;
}

.legal-page__back a:hover {
  text-decoration: underline;
}

.legal-page h1 {
  font-family: var(--display, "Outfit", sans-serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.legal-page__updated {
  margin: 0 0 1.75rem;
  font-size: 0.88rem;
  color: var(--muted, #94a3b8);
}

.legal-page section {
  margin-bottom: 1.35rem;
}

.legal-page h2 {
  font-family: var(--display, "Outfit", sans-serif);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: #fde68a;
}

.legal-page p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted, #cbd5e1);
}

.legal-page a {
  color: #fbbf24;
}

/* Medios de pago (franja compacta) */
.payments-bar {
  border-block: 1px solid var(--line);
  background: rgba(17, 27, 46, 0.55);
  padding-block: 1rem;
}

.payments-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.payments-bar__info {
  margin: 0;
  max-width: 70ch;
  line-height: 1.5;
}

.payments-bar__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.payments-bar__title::after {
  content: "·";
  margin: 0 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

.payments-bar__sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.payments-bar__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 7px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.pay-logo img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 130px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .payments-bar__inner {
    justify-content: center;
    text-align: center;
  }
  .payments-bar__logos {
    justify-content: center;
  }
}
