:root {
  --ink: #050505;
  --paper: #ece9e2;
  --mist: #b6b2aa;
  --champagne: #d6b98f;
  --line: rgba(236, 233, 226, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% -20%, rgba(255, 255, 255, 0.09), transparent 45%),
    radial-gradient(circle at 95% 15%, rgba(255, 255, 255, 0.06), transparent 40%),
    var(--ink);
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(circle at 25% 25%, #fff 0.5px, transparent 0.5px),
    radial-gradient(circle at 75% 75%, #fff 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  z-index: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.11), transparent 44%),
    linear-gradient(115deg, rgba(5, 5, 5, 0.9) 12%, rgba(5, 5, 5, 0.48) 52%, rgba(5, 5, 5, 0.94) 94%);
}

.hero-focus-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.hero-focus-media {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  overflow: hidden;
}

.hero-focus-media video,
.hero-focus-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-focus-video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78%;
  object-fit: contain;
  object-position: center;
  background: #050505;
}

.hero-content-shell {
  width: 100%;
  overflow: hidden;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.75rem;
}

.hero-left-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-left-main {
  max-width: 42rem;
}

@media (min-width: 768px) {
  .hero-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem;
  }

  .hero-left-content {
    justify-content: space-between;
  }

  .hero-focus-media {
    min-height: 0;
  }
}

@media (min-width: 1024px) {
  .hero-focus-video {
    max-height: 76%;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .hero-focus-video {
    width: 100%;
    max-width: 100%;
    max-height: min(60vh, 420px);
  }
}

@keyframes slowPulse {
  0% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1.06);
  }
}

video.hero-media {
  animation: slowPulse 9s ease-in-out infinite alternate;
}

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

.premium-border {
  border: 1px solid var(--line);
}

.editorial-title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.cta-main {
  background: linear-gradient(125deg, #e4ccb0, #cda56f);
  color: #171717;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.cta-main:hover,
.cta-main:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(214, 185, 143, 0.28);
  filter: saturate(1.1);
}

.cta-ghost {
  border: 1px solid var(--line);
  transition: border-color 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.cta-ghost:hover,
.cta-ghost:focus-visible {
  border-color: var(--paper);
  transform: translateY(-2px);
  background-color: rgba(236, 233, 226, 0.08);
}

.mobile-whatsapp-button {
  position: fixed;
  right: 1rem;
  bottom: 1.9rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 16px 30px rgba(18, 140, 126, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.mobile-whatsapp-button:hover,
.mobile-whatsapp-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 36px rgba(18, 140, 126, 0.4);
  filter: saturate(1.05);
}

.mobile-whatsapp-button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .mobile-whatsapp-button {
    right: 0.9rem;
    bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Services section ── */

.services-section {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url('./assets/logo/fotos/fondo-servicios.png');
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  color: #111111;
  border-top: 1px solid rgba(214, 185, 143, 0.22);
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 1.25rem auto auto 50%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 185, 143, 0.14) 0%, rgba(214, 185, 143, 0.06) 34%, transparent 68%);
  pointer-events: none;
}

.services-section::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.08), transparent);
  pointer-events: none;
}

.services-section .reveal {
  transition: opacity 320ms ease, transform 320ms ease;
}

.services-layout {
  position: relative;
  z-index: 1;
  max-width: 1520px;
}

.services-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.services-header::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 0;
  width: 56px;
  height: 2px;
  border-radius: 9999px;
  background: var(--champagne);
  opacity: 0.28;
}

.services-header::after {
  content: '';
  position: absolute;
  top: -0.15rem;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--champagne);
  box-shadow: 0 0 0 6px rgba(214, 185, 143, 0.16);
  opacity: 0.8;
}

.services-eyebrow {
  margin: 0;
  color: #111111;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.services-title {
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  max-width: 980px;
  color: #111111;
  font-family: Manrope, sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 5rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.services-title-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45em;
}

.services-title-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.16em 0.48em 0.18em;
  border-radius: 9999px;
  background: var(--champagne);
  color: #111111;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.services-subtitle {
  margin: 1.1rem 0 0;
  max-width: 640px;
  color: rgba(17, 17, 17, 0.68);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.6;
}

.services-count {
  margin: 1.2rem 0 0;
  color: #111111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }
}

.service-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  margin-top: -0.45rem;
  transition: transform 240ms ease;
}

.service-item::before {
  content: '';
  width: 1.35rem;
  height: 2px;
  border-radius: 9999px;
  background: rgba(214, 185, 143, 0.8);
  margin-bottom: 0.1rem;
}

.service-item:hover {
  transform: translateY(-2px);
}

.service-icon-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(82px, 6.5vw, 112px);
  aspect-ratio: 1;
  margin-inline: 0.45rem;
  margin-top: -0.2rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.045);
  transition: transform 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.service-icon svg {
  width: clamp(38px, 3.1vw, 46px);
  height: clamp(38px, 3.1vw, 46px);
}

.service-icon-mark {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  border-radius: 9999px;
  background: var(--champagne);
  transform: translateX(-50%);
  box-shadow: 0 0 0 0.25rem rgba(214, 185, 143, 0.12);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.service-icon-shell::after {
  content: '';
  position: absolute;
  top: 14%;
  right: 16%;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 9999px;
  background: var(--champagne);
  box-shadow: 0 0 0 0.3rem rgba(214, 185, 143, 0.14);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.service-item:hover .service-icon-shell {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.07), inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.service-item:hover .service-icon-shell::after {
  transform: scale(1.1);
  box-shadow: 0 0 0 0.36rem rgba(214, 185, 143, 0.18);
}

.service-item:hover .service-icon-mark {
  transform: translateX(-50%) scaleX(1.08);
  box-shadow: 0 0 0 0.3rem rgba(214, 185, 143, 0.18);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
}

.service-item-title {
  margin: 0;
  max-width: 15ch;
  color: #111111;
  font-family: Manrope, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.service-item-desc {
  margin: 0;
  max-width: 18ch;
  color: rgba(17, 17, 17, 0.68);
  font-size: 0.78rem;
  line-height: 1.55;
}

.services-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.3rem;
}

.services-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: min(100%, 380px);
  min-height: 64px;
  padding: 0 1.75rem;
  border-radius: 9999px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.services-cta:hover,
.services-cta:focus-visible {
  transform: translateY(-2px);
  background: #050505;
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.16);
}

.services-cta-arrow {
  font-size: 1.08em;
  line-height: 1;
}

.services-cta-note {
  margin: 0;
  color: #111111;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.service-item.reveal,
.services-cta-block.reveal {
  transition-delay: var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .service-icon-shell,
  .service-item,
  .services-cta,
  .service-icon-shell::after,
  .service-icon-mark {
    transition: none;
  }
}

/* ── end Services section ── */

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

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-focus-card {
    height: auto;
  }

  .hero-focus-media {
    min-height: 0;
  }
}

@media (min-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  video.hero-media {
    animation: none !important;
  }
}
