:root {
  --bg-slate: #3a4348;
  --bg-slate-deep: #2c3338;
  --pattern-tint: rgba(157, 161, 164, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --gold: #e1c45c;
  --gold-deep: #b8942e;
  --gold-glow: rgba(224, 184, 92, 0.55);
  --black: #0a0a0a;
  --accent-blue: #1e6feb;
  --accent-blue-hover: #3b83f7;
  --card: rgba(10, 10, 10, 0.35);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background-color: var(--bg-slate-deep);
  background-image:
    linear-gradient(180deg, rgba(44, 51, 56, 0.92), rgba(44, 51, 56, 0.97)),
    var(--page-bg-image, none);
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      135deg,
      transparent,
      transparent 18px,
      var(--pattern-tint) 18px,
      var(--pattern-tint) 19px
    ),
    repeating-linear-gradient(
      -135deg,
      transparent,
      transparent 18px,
      var(--pattern-tint) 18px,
      var(--pattern-tint) 19px
    );
  opacity: 0.6;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  opacity: 0;
  transform: translateX(-110%);
  animation: brand-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  text-align: center;
}

@keyframes brand-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.brand__mark {
  width: calc(52px * 1.4);
  height: calc(52px * 1.4);
  object-fit: contain;
  flex-shrink: 0;
  border-radius: calc(12px * 1.4);
}

.brand--full {
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand--full .brand__mark--full {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: center center;
  margin-inline: auto;
  border-radius: 14px;
}

.brand__text {
  line-height: 1;
  text-align: center;
  min-width: 0;
}

.brand__name {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.brand__sub {
  margin-top: 0.32rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow:
    0 0 14px var(--gold-glow),
    0 0 28px rgba(224, 184, 92, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.owner-credit {
  position: relative;
  margin: 0.15rem 0 0.65rem;
  padding: 0;
  text-align: center;
  line-height: 1.2;
}

/* Aura dorada que se mueve detrás del nombre */
.owner-credit__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 320px);
  height: 3.2rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 85% 100% at 30% 50%, rgba(225, 196, 92, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 90% at 70% 50%, rgba(248, 232, 168, 0.4), transparent 50%),
    radial-gradient(ellipse 60% 120% at 50% 50%, rgba(184, 148, 46, 0.35), transparent 45%);
  filter: blur(14px);
  opacity: 0.92;
  animation: owner-aura-drift 5.5s ease-in-out infinite;
}

@keyframes owner-aura-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) translateX(0) scaleX(1);
    opacity: 0.88;
  }
  25% {
    transform: translate(-50%, -50%) translateX(6%) scaleX(1.06);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) translateX(-5%) scaleX(0.94);
    opacity: 0.9;
  }
  75% {
    transform: translate(-50%, -50%) translateX(4%) scaleX(1.03);
    opacity: 0.96;
  }
}

.owner-credit__inner {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.28rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 20px rgba(225, 196, 92, 0.75),
    0 0 40px rgba(184, 148, 46, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.5);
  animation: owner-name-shine 3.2s ease-in-out infinite;
}

@keyframes owner-name-shine {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

.tagline--experience-bounce {
  animation: experience-bounce 1.85s cubic-bezier(0.34, 1.25, 0.64, 1) infinite;
  will-change: transform;
}

@keyframes experience-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  18% {
    transform: translateY(-10px);
  }
  36% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  62% {
    transform: translateY(0);
  }
  74% {
    transform: translateY(-3px);
  }
  86% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .owner-credit__glow,
  .owner-credit__inner,
  .tagline--experience-bounce {
    animation: none;
  }

  .tagline--experience-bounce {
    transform: none;
  }
}

.tagline {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.45;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.tagline--center {
  text-align: center;
  text-justify: auto;
  hyphens: none;
}

.tagline-rule {
  border: none;
  height: 2px;
  width: min(88%, 304px);
  margin: 0.5rem auto 1.15rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-deep) 22%,
    var(--gold) 50%,
    #f8e8a8 62%,
    var(--gold) 78%,
    var(--gold-deep) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 6px var(--gold-glow),
    0 0 14px rgba(224, 184, 92, 0.45),
    0 0 26px rgba(184, 148, 46, 0.28);
}

.tagline-services {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  margin: -0.65rem 0 1.2rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  margin: 0 0 0.65rem;
  text-align: center;
}

/* Marco fijo 4:3: video y poster usan el mismo recuadro (object-fit contain = bandas si el archivo no es 4:3). */
.gallery-video {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e0f10;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-video__frame {
  width: min(100%, 312px);
  aspect-ratio: 4 / 3;
  position: relative;
  background: #000;
  overflow: hidden;
}

.gallery-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000;
}

.gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.gallery__slides {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  touch-action: pan-y;
}

.gallery__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery__half {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.gallery__half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__label {
  position: absolute;
  bottom: 0.45rem;
  left: 0.45rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 10, 10, 0.72);
  border-radius: 6px;
}

.gallery__paused {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(30, 111, 235, 0.95);
  color: #fff;
  border-radius: 7px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.gallery.is-paused .gallery__paused {
  opacity: 1;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0 0.75rem;
}

.gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.gallery__dot.is-active {
  background: var(--accent-blue);
  transform: scale(1.15);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: visible;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(180deg, #25d366, #1da851);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  margin-bottom: 0.65rem;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(180deg, #2cde6f, #22b25b);
}

.btn--wa {
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}

.btn__wa-text {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  text-align: center;
  min-width: 0;
}

.btn__wa-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
}

.btn__wa-sub {
  width: 100%;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.88;
  line-height: 1.2;
}

.btn__wa-icon {
  align-self: center;
}

.btn--ig {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(221, 42, 123, 0.34);
}

.btn--tg {
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #2aabee, #229ed9);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.35);
}

.social-title {
  margin: 0.1rem 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.social-lower {
  transform: translateY(5%);
}

.btn__icon {
  width: 1.12rem;
  height: 1.12rem;
  flex-shrink: 0;
}

.btn--pulse {
  animation: btn-float 2.4s ease-in-out infinite;
}

.btn--pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 6px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.36);
  animation: btn-aura 2.4s ease-out infinite;
  pointer-events: none;
}

.btn--aura::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 6px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.36);
  animation: btn-aura 2.6s ease-out infinite;
  pointer-events: none;
}

.btn--ig.btn--aura::after {
  animation-delay: 0.92s;
}

.btn--enter-right {
  opacity: 0;
  right: -42px;
  animation: btn-enter-right 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.btn--enter-right.btn--pulse {
  animation:
    btn-enter-right 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    btn-float 2.4s ease-in-out 1.05s infinite;
}

.btn--pulse.btn--enter-right::after {
  animation-delay: 1.05s;
}

.btn--enter-1.btn--pulse {
  animation-delay: 0.15s, 1.2s;
}

.btn--enter-2 {
  animation-delay: 0.38s;
}

.enter-from-right {
  display: block;
  position: relative;
  opacity: 0;
  right: -42px;
  animation: btn-enter-right 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.enter-delay-2 {
  animation-delay: 0.38s;
}

@keyframes btn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes btn-enter-right {
  to {
    opacity: 1;
    right: 0;
  }
}

@keyframes btn-aura {
  0% {
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  70% {
    opacity: 0;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

#conocenos {
  scroll-margin-top: 1rem;
}

.block-conocenos {
  margin-top: 0.25rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.block-conocenos h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  text-align: center;
}

.block-conocenos p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/*
 * iPhone Safari: barra inferior del navegador come altura útil.
 * Compactamos ~10% el ritmo vertical, subimos el bloque un poco y achicamos solo el marco del video.
 * (-webkit-touch-callout: none ≈ WebKit táctil; no afecta Chrome Android ni escritorio ancho.)
 */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 480px) {
    .wrap {
      padding-top: 1.05rem;
      padding-bottom: calc(1.55rem + env(safe-area-inset-bottom, 0px));
      margin-top: clamp(-0.85rem, -3.2vh, -0.25rem);
    }

    .brand {
      margin-bottom: 1.12rem;
    }

    .owner-credit {
      margin: 0.1rem 0 0.52rem;
    }

    .tagline {
      margin: 0 0 1.05rem;
    }

    .tagline-rule {
      margin: 0.42rem auto 0.95rem;
    }

    .tagline-services {
      margin: -0.55rem 0 1.02rem;
    }

    .section-title {
      margin: 0 0 0.52rem;
    }

    .gallery-video {
      margin: 0 auto 0.92rem;
    }

    .gallery-video__frame {
      width: min(100%, 278px);
    }

    .gallery {
      margin-bottom: 1.28rem;
    }

    .btn--primary {
      margin-bottom: 0.52rem;
    }

    .btn--ig,
    .btn--tg {
      margin-bottom: 0.82rem;
    }

    .social-lower {
      transform: translateY(2%);
    }

    .block-conocenos {
      padding: 0.82rem 0.9rem 0.92rem;
    }
  }
}
