/* Impact theme — cinematic dark + amber, textures, bubble UI */

.bg-base {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse 80% 55% at 10% -10%, rgba(229, 168, 75, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(42, 50, 59, 0.9), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(229, 168, 75, 0.12), transparent 55%),
    linear-gradient(165deg, #171b22 0%, var(--bg) 45%, #0e1116 100%);
}

.bg-glow {
  z-index: -3 !important;
  background:
    radial-gradient(circle at 70% 30%, rgba(229, 168, 75, 0.14), transparent 32%),
    radial-gradient(circle at 20% 70%, rgba(243, 236, 223, 0.05), transparent 28%) !important;
}

.bg-texture {
  z-index: -2 !important;
  opacity: 0.5 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e5a84b' fill-opacity='0.4'%3E%3Cpath d='M0 39h1v1H0V39zm0-10h1v1H0v-1zm0-10h1v1H0v-1zm0-10h1v1H0V9zm10 30h1v1h-1v-1zm0-10h1v1h-1v-1zm0-10h1v1h-1v-1zm0-10h1v1h-1V9zm10 30h1v1h-1v-1zm0-10h1v1h-1v-1zm0-10h1v1h-1v-1zm0-10h1v1h-1V9zm10 30h1v1h-1v-1zm0-10h1v1h-1v-1zm0-10h1v1h-1v-1zm0-10h1v1h-1V9z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23f3ecdf' stroke-opacity='0.07' stroke-width='1'/%3E%3Ccircle cx='60' cy='60' r='28' fill='none' stroke='%23e5a84b' stroke-opacity='0.16' stroke-width='1'/%3E%3C/svg%3E") !important;
  background-size: 40px 40px, 180px 180px !important;
  mix-blend-mode: soft-light !important;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(243, 236, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 236, 223, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.grain {
  opacity: 0.28 !important;
  mix-blend-mode: overlay !important;
}

/* Gate */
.intro-gate {
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(229, 168, 75, 0.18), transparent 65%),
    linear-gradient(160deg, #1a1f27, #0e1116 70%) !important;
}

.intro-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23e5a84b' stroke-opacity='0.28'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.intro-gate__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.gate-icon {
  position: absolute;
  width: clamp(2.6rem, 6vw, 3.6rem);
  height: clamp(2.6rem, 6vw, 3.6rem);
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: rgba(229, 168, 75, 0.08);
  border: 1px solid rgba(229, 168, 75, 0.28);
  backdrop-filter: blur(6px);
  animation: gate-float 6s var(--ease) infinite alternate;
  opacity: 0.45;
  z-index: 0;
}

.gate-icon svg {
  width: 55%;
  height: 55%;
}

.gate-icon--1 { top: 12%; left: 10%; }
.gate-icon--2 { top: 18%; right: 12%; animation-delay: 0.4s; }
.gate-icon--3 { bottom: 22%; left: 14%; animation-delay: 0.8s; }
.gate-icon--4 { bottom: 16%; right: 10%; animation-delay: 1.1s; }
.gate-icon--5 { top: 42%; left: 6%; animation-delay: 0.2s; }
.gate-icon--6 { top: 48%; right: 7%; animation-delay: 0.6s; }

@keyframes gate-float {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-12px) rotate(4deg); }
}

.intro-gate__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  gap: 1.4rem !important;
}

.intro-gate__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.intro-gate__title {
  font-family: var(--display) !important;
  font-size: clamp(1.85rem, 5.5vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  color: var(--white) !important;
}

.intro-gate__title span {
  display: block;
  margin-top: 0.2em;
  background: linear-gradient(90deg, var(--amber-hot), var(--cream), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Logo centered */
.logo {
  font-family: var(--display) !important;
  letter-spacing: 0.04em !important;
  font-size: 0.95rem !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  border-color: rgba(243, 236, 223, 0.55) !important;
  transition: transform 0.35s var(--ease-bubble), border-color 0.25s var(--ease), background 0.25s var(--ease) !important;
}

.logo span {
  display: block;
  line-height: 1;
  transform: translateY(0.5px);
}

.logo:hover {
  transform: scale(1.12);
  border-color: var(--amber);
  background: rgba(229, 168, 75, 0.12);
}

.site-header {
  background: rgba(18, 21, 26, 0.94) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 168, 75, 0.18);
}

.site-header.is-scrolled {
  background: rgba(14, 16, 20, 0.97) !important;
  backdrop-filter: blur(14px);
}

.nav a {
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-bubble) !important;
}

.nav a:hover {
  transform: scale(1.08);
}

.nav-cta {
  background: var(--amber) !important;
  color: var(--ink) !important;
  transition: transform 0.35s var(--ease-bubble), background 0.25s var(--ease) !important;
}

.nav-cta:hover {
  transform: scale(1.1) !important;
  background: var(--amber-hot) !important;
}

/* Titles */
.title-box h2 {
  font-family: var(--display) !important;
  background: transparent !important;
  color: var(--white) !important;
  font-size: clamp(1.35rem, 3.2vw, 2rem) !important;
  letter-spacing: 0.06em !important;
  padding: 0.35rem 0 0.55rem !important;
  border-radius: 0 !important;
  border-bottom: 3px solid var(--amber);
  box-shadow: none !important;
}

.title-box h2::before,
.title-box h2::after {
  display: none !important;
}

/* Bubble buttons */
.btn {
  transition: transform 0.35s var(--ease-bubble), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.35s var(--ease) !important;
}

.btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
}

.btn--amber:hover {
  background: var(--amber-hot);
}

.btn--dark {
  background: var(--slate) !important;
}

.btn--pill {
  background: var(--amber) !important;
  color: var(--ink) !important;
}

.filter-btn {
  transition: transform 0.35s var(--ease-bubble), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease) !important;
}

.filter-btn:hover {
  transform: scale(1.1);
  border-color: var(--amber) !important;
}

.filter-btn.is-active {
  background: var(--amber) !important;
  border-color: var(--amber) !important;
  color: var(--ink) !important;
}

.whatsapp-btn:hover {
  transform: scale(1.14) !important;
}

/* Hero flush to marquee — foto recortada en la línea */
.hero {
  min-height: calc(100svh - var(--marquee-h)) !important;
  padding: calc(var(--header-h) + 0.5rem) clamp(1.25rem, 5vw, 4rem) 0 !important;
  align-items: end !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse 55% 45% at 78% 60%, rgba(229, 168, 75, 0.12), transparent 70%),
    linear-gradient(150deg, #1c222b, #14181f 55%, #10141a) !important;
}

.hero__name {
  font-family: var(--display) !important;
  font-weight: 800 !important;
}

.hero__content {
  padding-bottom: clamp(1.5rem, 4vh, 2.75rem) !important;
}

.hero__visual {
  height: min(78svh, 44rem) !important;
  margin-bottom: 0 !important;
  align-self: end !important;
}

.hero__photo-wrap {
  height: 100% !important;
  align-items: flex-end !important;
  overflow: hidden !important;
}

.hero__photo {
  height: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  max-width: min(100%, 28rem) !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  display: block !important;
}

.scroll-hint {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0.85rem !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
}

.marquee {
  height: var(--marquee-h);
  display: flex;
  align-items: center;
  margin: 0 !important;
  border-block: 1px solid rgba(229, 168, 75, 0.35) !important;
  background: #161a21 !important;
  padding: 0 !important;
  position: relative;
  z-index: 5;
}

.marquee__track {
  color: var(--cream) !important;
}

.orb {
  background: #2f3842 !important;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

/* Sections on dark base */
.about,
.services,
.showreel,
.work,
.skills,
.experience,
.profile,
.portfolio {
  background: transparent !important;
}

.about {
  background: linear-gradient(180deg, rgba(26, 31, 39, 0.95), rgba(18, 21, 26, 0.4)) !important;
}

.showreel {
  background: radial-gradient(ellipse at 50% 0%, rgba(229, 168, 75, 0.1), transparent 55%) !important;
}

.work {
  background: linear-gradient(180deg, rgba(18, 21, 26, 0.2), rgba(26, 31, 39, 0.85)) !important;
}

.skills {
  background: linear-gradient(180deg, rgba(26, 31, 39, 0.9), rgba(18, 21, 26, 0.5)) !important;
}

.about__panel,
.focus-list,
.skill,
.profile__qr {
  background: rgba(42, 50, 59, 0.55) !important;
  border: 1px solid rgba(243, 236, 223, 0.08);
}

.skill:hover {
  transform: scale(1.04) !important;
  background: rgba(42, 50, 59, 0.8) !important;
}

.skill__icon--blender {
  background: var(--white) !important;
}

.skill__icon--blender img {
  width: 1.35rem;
  height: 1.35rem;
}

.skill__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.skill__name {
  margin-bottom: 0 !important;
}

.skill__pct {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.skill__fill {
  background: linear-gradient(90deg, var(--amber-deep), var(--amber-hot)) !important;
  width: 0 !important;
}

.skill.is-visible .skill__fill {
  width: var(--level, 90%) !important;
}

/* Decorative icons — anclados a cada sección (no fixed) */
.hero,
.section {
  position: relative;
}

.section {
  overflow: hidden;
}

.hero {
  overflow: visible;
}

.section-deco {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: rgba(229, 168, 75, 0.08);
  border: 1px solid rgba(229, 168, 75, 0.22);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.section-deco svg {
  width: 52%;
  height: 52%;
}

.section-deco--tl { top: 1.4rem; left: 1.1rem; }
.section-deco--tr { top: 1.6rem; right: 1.2rem; }
.section-deco--bl { bottom: 1.5rem; left: 1.2rem; }
.section-deco--br { bottom: 1.4rem; right: 1.3rem; }

.hero .section-deco--tl {
  top: 5.5rem;
  left: 1.25rem;
}

.gate-icon {
  will-change: transform;
  animation: none !important;
}

.profile__layout--solo {
  grid-template-columns: 1fr !important;
  max-width: 46rem;
  margin-inline: auto;
}

.profile__mail {
  margin-top: 1.25rem !important;
  font-size: 0.95rem;
}

.profile__mail a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Carrusel: sin solapes */
.work-showcase {
  max-width: min(72rem, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.work-showcase.is-marquee {
  overflow: hidden;
  padding: 0.35rem 0 0.75rem;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.work-showcase.is-marquee .work__rail {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  width: max-content !important;
  gap: 0.85rem !important;
  animation: work-slide 60s linear infinite;
  will-change: transform;
}

.work-showcase.is-marquee:hover .work__rail {
  animation-play-state: paused;
}

.work-showcase.is-marquee .work__grid,
.work-showcase.is-marquee .work__grid--clone {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  width: max-content !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0.25rem 0 !important;
  grid-template-columns: none !important;
}

.work-showcase.is-marquee .work-item {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 9rem !important;
  width: 9rem !important;
  max-width: 9rem !important;
  display: block !important;
}

.work-showcase.is-marquee .work-item.is-hidden {
  display: block !important;
}

.work-showcase.is-marquee .work-item:hover,
.work-showcase.is-marquee .work-item:focus-within {
  z-index: 2 !important;
}

.work-showcase.is-marquee .work-thumb {
  transform: none !important;
}

.work-showcase.is-marquee .work-item:hover .work-thumb,
.work-showcase.is-marquee .work-item:focus-within .work-thumb {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35) !important;
}

.work-showcase.is-marquee .work__grid--clone {
  pointer-events: none !important;
}

@keyframes work-slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.work-showcase.is-marquee .work-thumb {
  cursor: pointer;
}

.lightbox {
  z-index: 140 !important;
}

.showreel__frame {
  position: relative;
  overflow: hidden;
}

@media (max-width: 700px) {
  .work-showcase.is-marquee .work-item {
    flex-basis: 7.5rem !important;
    width: 7.5rem !important;
    max-width: 7.5rem !important;
  }

  .work-showcase.is-marquee .work__rail {
    animation-duration: 45s;
  }

  .section-deco--bl,
  .section-deco--br {
    display: none;
  }
}

/* Nacional centered players */
.latest-projects {
  max-width: 56rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.latest-projects__title {
  font-family: var(--display);
  color: var(--amber) !important;
  letter-spacing: 0.14em;
}

.latest-projects__players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  justify-content: center;
  max-width: 52rem;
  margin: 0 auto;
}

.embed-player {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.embed-player__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0c0f;
  border: 1px solid rgba(229, 168, 75, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* Nacional: recorte superior para ocultar el icono de Drive y dejar controles nativos */
.embed-player__frame iframe {
  position: absolute;
  left: 0;
  width: 100%;
  border: 0;
  top: -52px;
  height: calc(100% + 52px);
}

/* Reel: sin recorte ni escala (evita franja negra y controles intactos) */
.showreel__frame {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(229, 168, 75, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4) !important;
}

.showreel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lightbox (galería): mismo trato que Nacional */
.lightbox__inner iframe.is-active {
  position: absolute;
  left: 0;
  width: 100%;
  border: 0;
  top: -52px;
  height: calc(100% + 52px);
  background: #000;
}

.embed-player figcaption {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

@media (max-width: 760px) {
  .latest-projects__players {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }

  .gate-icon--5,
  .gate-icon--6 {
    display: none;
  }

  .hero {
    min-height: auto !important;
  }

  .hero__visual {
    height: min(58svh, 28rem) !important;
  }
}
