/* ── Hero (centered / floating cards) ── */
.hero {
  position: relative;
  min-height: 100dvh;
  padding-block: calc(var(--header-height) + 1.25rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-hero-bg);
  color: var(--color-white);
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__star-wrap {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate3d(
    calc(-50% + var(--parallax-x, 0px)),
    calc(-50% + var(--parallax-y, 0px)),
    0
  );
  will-change: transform;
}

.hero__star {
  display: block;
  width: var(--size, 1.2px);
  height: var(--size, 1.2px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  opacity: var(--base, 0.26);
  transform: scale(1);
  will-change: opacity, transform;
}

.hero__star--flare {
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__star {
    animation: hero-star-twinkle var(--duration, 6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }
}

@keyframes hero-star-twinkle {
  0%, 100% {
    opacity: calc(var(--base) * 0.65);
    transform: scale(1);
  }

  22% {
    opacity: var(--base);
  }

  48% {
    opacity: min(calc(var(--base) * 3.74), 1);
    transform: scale(1.3);
  }

  62% {
    opacity: min(calc(var(--base) * 1.08), 1);
    transform: scale(1);
  }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  background: var(--color-cohete);
  opacity: 0.24;
  filter: blur(72px);
}

.hero__orb--1 {
  width: clamp(300px, 42vw, 520px);
  height: clamp(300px, 42vw, 520px);
  top: 8%;
  left: -10%;
}

.hero__orb--2 {
  width: clamp(260px, 38vw, 460px);
  height: clamp(260px, 38vw, 460px);
  bottom: 12%;
  right: -8%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* Top — centered copy */
.hero__top {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 52rem;
  padding-bottom: 0;
  flex-shrink: 0;
}

.hero__social {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: var(--glass-blur);
}

.hero__avatars {
  display: flex;
}

.hero__avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-hero-bg);
  margin-left: -10px;
  object-fit: cover;
}

.hero__avatars img:first-child {
  margin-left: 0;
}

.hero__social-count {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
}

.hero__social-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted-on-dark);
}

.hero__title {
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  max-width: 18ch;
  margin-inline: auto;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.hero__emoji {
  display: inline-block;
  font-style: normal;
  vertical-align: middle;
}

.hero__subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--color-text-muted-on-dark);
  line-height: 1.7;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}

.hero__cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.hero__actions {
  max-width: 280px;
  margin-inline: 0;
  z-index: 4;
  gap: 1rem;
}

.hero__actions .hero__social {
  align-self: flex-start;
}

.hero__cta-btn {
  justify-content: center;
  background: var(--color-white);
  color: var(--color-hero-bg);
  box-shadow: none;
}

.hero__cta-btn:hover {
  background: var(--color-cohete);
  color: var(--color-white);
}

.hero__cta-btn .btn__icon {
  background: color-mix(in srgb, var(--color-hero-bg) 12%, transparent);
}

.hero__cta-btn:hover .btn__icon {
  background: color-mix(in srgb, var(--color-white) 25%, transparent);
}

.hero__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: var(--glass-blur);
  color: var(--color-text-muted-on-dark);
  font-size: 0.9375rem;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.hero__search:hover {
  border-color: color-mix(in srgb, var(--color-white) 30%, transparent);
  color: var(--color-white);
}

.hero__search-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Scene — portrait + floating cards */
.hero__scene {
  position: relative;
  width: 100%;
  max-width: min(1200px, 100%);
  flex: 1;
  min-height: clamp(260px, 42vh, 560px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 0;
  z-index: 2;
}

.hero__portrait {
  position: relative;
  z-index: 1;
  margin: 0;
  width: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
}

.hero__portrait-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 480px);
  max-height: min(calc(100dvh - var(--header-height) - 10rem), 660px);
  object-fit: contain;
  object-position: center bottom;
}

.hero__float {
  position: absolute;
  z-index: 3;
}

.hero__float--left {
  left: 30px;
  top: auto;
  bottom: calc(clamp(1.25rem, 7vh, 2.5rem) + 80px);
  max-width: 280px;
}

.hero__float--right {
  right: 30px;
  top: auto;
  bottom: calc(clamp(1.25rem, 7vh, 2.5rem) + 80px);
  max-width: 340px;
}

/* Cápsulas glass + glow rojo */
.hero__capsules {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.hero__capsule {
  position: relative;
  padding: 1.25rem 1.375rem 1.375rem;
  border-radius: var(--radius-capsule);
  background: color-mix(in srgb, var(--color-white) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-white) 10%, transparent);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  box-shadow: var(--shadow-glow-red);
  cursor: pointer;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  outline: none;
}

.hero__capsule:hover,
.hero__capsule:focus-visible {
  border-color: color-mix(in srgb, var(--color-cohete) 65%, var(--color-white));
  box-shadow:
    var(--shadow-glow-red),
    0 0 0 1px color-mix(in srgb, var(--color-cohete) 45%, transparent),
    0 0 18px color-mix(in srgb, var(--color-cohete) 35%, transparent),
    0 0 36px color-mix(in srgb, var(--color-cohete) 18%, transparent);
}

.hero__capsule:active,
.hero__capsule.is-lit {
  border-color: color-mix(in srgb, var(--color-cohete) 85%, var(--color-white));
  box-shadow:
    0 0 0 1px var(--color-cohete),
    0 0 22px color-mix(in srgb, var(--color-cohete) 50%, transparent),
    0 0 44px color-mix(in srgb, var(--color-cohete) 28%, transparent);
}

.hero__capsule:focus-visible {
  outline: 2px solid var(--color-cohete);
  outline-offset: 3px;
}

.hero__capsule::before {
  content: '';
  position: absolute;
  top: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--color-cohete) 50%, transparent) 0%,
    color-mix(in srgb, var(--color-cohete) 18%, transparent) 40%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__capsule::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-cohete) 8%, transparent) 0%,
    transparent 45%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__capsule > * {
  position: relative;
  z-index: 1;
}

.hero__capsule-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-cohete) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-cohete) 45%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--color-cohete) 35%, transparent);
}

.hero__capsule-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.hero__capsule-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.35;
  margin-bottom: 0;
  padding-right: 2.75rem;
  text-transform: none;
  letter-spacing: -0.01em;
}

.hero__capsule-stat {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.375rem;
  letter-spacing: -0.03em;
}

/* Tarjetas stat — referencia: panel rojo + pie oscuro */
.hero__capsule--stat {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-width: min(100%, 300px);
  border-radius: 20px;
  background: #0c0404;
  border: 1px solid color-mix(in srgb, var(--color-cohete) 28%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ff9a8a 45%, transparent),
    0 16px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero__capsule--stat::before {
  content: '';
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse 130% 100% at 50% 100%,
      color-mix(in srgb, var(--color-cohete) 90%, #ff6b5a) 0%,
      color-mix(in srgb, var(--color-nebulosa) 65%, transparent) 42%,
      color-mix(in srgb, var(--color-black) 55%, var(--color-cohete)) 68%,
      transparent 88%
    ),
    linear-gradient(180deg, #1a0707 0%, #0c0404 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__capsule--stat::after {
  content: '';
  position: absolute;
  inset: auto;
  top: 0;
  left: 10%;
  right: 10%;
  bottom: auto;
  width: auto;
  height: 1px;
  transform: none;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, #ffc4b8 70%, transparent) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero__capsule--stat:hover,
.hero__capsule--stat:focus-visible {
  border-color: color-mix(in srgb, var(--color-cohete) 45%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ff9a8a 55%, transparent),
    0 18px 44px rgba(0, 0, 0, 0.58),
    0 0 32px color-mix(in srgb, var(--color-cohete) 30%, transparent);
}

.hero__capsule--stat:active,
.hero__capsule--stat.is-lit {
  border-color: color-mix(in srgb, var(--color-pulso) 50%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ff9a8a 50%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-cohete) 55%, transparent),
    0 0 36px color-mix(in srgb, var(--color-cohete) 40%, transparent);
}

.hero__stat-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem 1rem;
  min-height: 0;
}

.hero__stat-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.02em;
}

.hero__stat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid color-mix(in srgb, var(--color-cohete) 42%, transparent);
  box-shadow:
    inset 0 0 14px color-mix(in srgb, var(--color-cohete) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--color-cohete) 28%, transparent);
  color: #ffb09a;
}

.hero__stat-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hero__stat-foot {
  position: relative;
  z-index: 1;
  padding: 0.625rem 1rem 0.75rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.78) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__stat-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 190, 175, 0.52);
  letter-spacing: -0.01em;
}

.hero__capsule--stat.hero__capsule--pose-4 {
  transform: rotate(-2deg);
}

.hero__capsule--stat.hero__capsule--pose-5 {
  transform: rotate(2deg);
}

.hero__capsules {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hero__capsule--pose-1 {
  transform: rotate(-6deg) translateX(-14px);
}

.hero__capsule--pose-2 {
  transform: rotate(5deg) translateX(12px);
}

.hero__capsule--pose-3 {
  transform: rotate(-3deg) translateX(-10px) translateY(6px);
}

.hero__capsule--pose-1:hover,
.hero__capsule--pose-1:active,
.hero__capsule--pose-1:focus-visible,
.hero__capsule--pose-1.is-lit,
.hero__capsule--pose-2:hover,
.hero__capsule--pose-2:active,
.hero__capsule--pose-2:focus-visible,
.hero__capsule--pose-2.is-lit,
.hero__capsule--pose-3:hover,
.hero__capsule--pose-3:active,
.hero__capsule--pose-3:focus-visible,
.hero__capsule--pose-3.is-lit,
.hero__capsule--pose-4:hover,
.hero__capsule--pose-4:active,
.hero__capsule--pose-4:focus-visible,
.hero__capsule--pose-4.is-lit,
.hero__capsule--pose-5:hover,
.hero__capsule--pose-5:active,
.hero__capsule--pose-5:focus-visible,
.hero__capsule--pose-5.is-lit {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__capsule--pose-1 {
    animation: hero-pose-1 5s ease-in-out infinite;
  }

  .hero__capsule--pose-2 {
    animation: hero-pose-2 5.2s ease-in-out infinite 0.4s;
  }

  .hero__capsule--pose-3 {
    animation: hero-pose-3 4.8s ease-in-out infinite 0.8s;
  }

  .hero__capsule--stat.hero__capsule--pose-4 {
    animation: hero-stat-pose-4 5s ease-in-out infinite;
  }

  .hero__capsule--stat.hero__capsule--pose-5 {
    animation: hero-stat-pose-5 5s ease-in-out infinite 0.5s;
  }

  @keyframes hero-stat-pose-4 {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-5px); }
  }

  @keyframes hero-stat-pose-5 {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-5px); }
  }

  @keyframes hero-pose-1 {
    0%, 100% { transform: rotate(-6deg) translateX(-14px) translateY(0); }
    50% { transform: rotate(-6deg) translateX(-14px) translateY(-7px); }
  }

  @keyframes hero-pose-2 {
    0%, 100% { transform: rotate(5deg) translateX(12px) translateY(0); }
    50% { transform: rotate(5deg) translateX(12px) translateY(-7px); }
  }

  @keyframes hero-pose-3 {
    0%, 100% { transform: rotate(-3deg) translateX(-10px) translateY(6px); }
    50% { transform: rotate(-3deg) translateX(-10px) translateY(-1px); }
  }
}

@media (min-width: 640px) {
  .hero__title {
    max-width: none;
  }
}

@media (min-width: 768px) {
  .hero__float--left {
    left: 30px;
    bottom: calc(clamp(1.5rem, 9vh, 3.5rem) + 80px);
  }

  .hero__float--right {
    right: 30px;
    bottom: calc(clamp(1.5rem, 9vh, 3.5rem) + 80px);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    margin-bottom: 0.875rem;
  }

  .hero__subtitle {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero__top {
    padding-bottom: 0.75rem;
  }

  .hero__scene {
    min-height: clamp(340px, 48vh, 580px);
    margin-top: clamp(-3.5rem, -5vh, -2rem);
    align-items: flex-end;
  }

  .hero__portrait {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
  }

  .hero__portrait-img {
    max-width: min(560px, 40vw);
    max-height: min(calc(100dvh - var(--header-height) - 11.5rem), 700px);
  }

  .hero__float--left {
    left: 30px;
    bottom: calc(clamp(2rem, 12vh, 4.5rem) + 80px);
  }

  .hero__float--right {
    right: 30px;
    bottom: calc(clamp(2rem, 12vh, 4.5rem) + 80px);
  }
}

@media (min-width: 1280px) {
  .hero__scene {
    margin-top: clamp(-4rem, -6vh, -2.5rem);
    min-height: clamp(360px, 50vh, 620px);
  }

  .hero__portrait-img {
    max-width: 600px;
    max-height: min(calc(100dvh - var(--header-height) - 11rem), 740px);
  }

  .hero__actions {
    max-width: 300px;
  }

  .hero__float--left,
  .hero__float--right {
    bottom: calc(clamp(2.5rem, 13vh, 5rem) + 80px);
  }

  .hero__float--left {
    left: 30px;
  }

  .hero__float--right {
    right: 30px;
  }
}

@media (max-width: 639px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-height) + 1rem) 2rem;
  }

  .hero__top {
    padding-bottom: 0.5rem;
  }

  .hero__scene {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: auto;
    flex: none;
    margin-top: 0;
    gap: 1rem;
    overflow: visible;
  }

  .hero__float--right {
    display: none;
  }

  .hero__actions {
    display: contents;
  }

  .hero__social {
    order: 1;
    align-self: center;
    margin-inline: auto;
  }

  .hero__cta-btn {
    order: 2;
    align-self: center;
    width: auto;
    max-width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    gap: 0.5rem;
  }

  .hero__cta-btn .btn__icon {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .hero__portrait {
    order: 3;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    pointer-events: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero__portrait-img {
    width: min(100%, 360px);
    max-width: 360px;
    max-height: none;
    height: auto;
  }

  .hero__search {
    order: 4;
    width: 100%;
  }
}

/* ── Sobre ── */
.sobre__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.sobre__badge-wrap {
  margin-bottom: 1.25rem;
}

.sobre__content .section__title {
  margin-bottom: 1.75rem;
}

.sobre__text {
  margin-top: 0.25rem;
}

.sobre__text p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.sobre__quote {
  margin: 0;
  padding: 0;
  border: none;
}

.sobre__quote p {
  margin: 0;
  color: var(--color-ink-muted);
}

.sobre__quote-author {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-style: normal;
  color: var(--color-ink-subtle);
}

.sobre__quote-name {
  font-weight: 600;
  color: var(--color-cohete);
}

.sobre__text p + p {
  margin-top: 1.25rem;
}

.sobre__cta {
  margin-top: 2rem;
}

.sobre__photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1.2fr 0.8fr;
  gap: 0.875rem;
  min-height: clamp(300px, 38vw, 460px);
}

.sobre__photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: var(--radius-card);
  transition: transform var(--transition-spring);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12));
}

.sobre__photo-frame:hover {
  transform: scale(1.015);
}

.sobre__photo-frame--main {
  grid-column: 1;
  grid-row: 1 / -1;
}

.sobre__photo-frame--top {
  grid-column: 2;
  grid-row: 1;
}

.sobre__photo-frame--bottom {
  grid-column: 2;
  grid-row: 2;
}

.sobre__photo {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.sobre__photo-frame--main .sobre__photo {
  object-position: center top;
}

@media (max-width: 767px) {
  .sobre__photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
    max-width: 420px;
    margin-inline: auto;
  }

  .sobre__photo-frame--main {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 260px;
  }

  .sobre__photo-frame--top {
    grid-column: 1;
    grid-row: 2;
    min-height: 180px;
  }

  .sobre__photo-frame--bottom {
    grid-column: 2;
    grid-row: 2;
    min-height: 180px;
  }
}

@media (min-width: 768px) {
  .sobre__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

/* ── Galería Cover Flow 3D ── */
.galeria-coverflow {
  margin-top: 1rem;
  max-width: 100%;
  overflow: hidden;
}

.galeria-coverflow__stage {
  position: relative;
  height: clamp(300px, 52vw, 440px);
  perspective: 1400px;
  perspective-origin: 50% 45%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.galeria-coverflow__track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.galeria-coverflow__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(210px, 44vw, 340px);
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-dark);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s ease,
    box-shadow 0.55s ease;
}

.galeria-coverflow__slide.is-active {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 40px color-mix(in srgb, var(--color-cohete) 30%, transparent);
  border-color: color-mix(in srgb, var(--color-cohete) 40%, transparent);
}

.galeria-coverflow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.galeria-coverflow__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.galeria-coverflow__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-glass-border);
  border-radius: 50%;
  background: var(--color-glass);
  backdrop-filter: var(--glass-blur);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.galeria-coverflow__btn:hover {
  background: var(--color-cohete);
  border-color: var(--color-cohete);
  transform: scale(1.08);
}

.galeria-coverflow__btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.galeria-coverflow__dots {
  display: flex;
  gap: 0.5rem;
}

.galeria-coverflow__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-glass-border);
  cursor: pointer;
  transition: background-color var(--transition-base), width var(--transition-base);
}

.galeria-coverflow__dot.is-active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--color-cohete);
}

@media (max-width: 767px) {
  .galeria-coverflow__stage {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .galeria-coverflow__stage {
    perspective: none;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .galeria-coverflow__track {
    display: flex;
    gap: 1rem;
    padding-inline: 1rem;
    height: auto;
  }

  .galeria-coverflow__slide {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 clamp(210px, 70vw, 280px);
    transform: none !important;
    opacity: 1 !important;
    scroll-snap-align: center;
  }

  .galeria-coverflow__controls {
    display: none;
  }
}

@media (min-width: 768px) {
  .galeria-coverflow__slide {
    border-radius: 32px;
  }
}

/* ── Contacto — bento grid ── */
.contacto__layout {
  display: grid;
  gap: 1rem;
}

.contacto__form-card,
.contacto__info,
.contacto__map {
  min-height: 0;
}

.contacto__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius-card-lg);
  border: 1px solid var(--color-stage-deep);
  box-shadow: var(--shadow-float);
}

.contacto__item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.contacto__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cohete);
}

.contacto__value {
  font-size: 1.0625rem;
  color: var(--color-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contacto__value a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contacto__value a:hover {
  color: var(--color-cohete);
}

.contacto__address {
  font-style: normal;
  line-height: 1.6;
}

.contacto__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.contacto__social .site-footer__social-link {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-white);
}

.contacto__social .site-footer__social-link:hover {
  background: var(--color-cohete);
  border-color: var(--color-cohete);
}

.contacto__form-card {
  border: 1px solid var(--color-stage-deep);
  box-shadow: var(--shadow-float-hover);
}

.contacto__map {
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  border: 1px solid var(--color-stage-deep);
  min-height: 280px;
}

.contacto__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: grayscale(20%) contrast(1.05);
}

@media (min-width: 768px) {
  .contacto__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 1.25rem;
    align-items: stretch;
  }

  .contacto__form-card {
    grid-column: 1;
    grid-row: 1;
  }

  .contacto__info {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-content: start;
  }

  .contacto__item:nth-child(3),
  .contacto__item:nth-child(4) {
    grid-column: 1;
  }

  .contacto__map {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 360px;
  }

  .contacto__map iframe {
    min-height: 360px;
  }
}

@media (min-width: 1024px) {
  .contacto__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: auto minmax(300px, 1fr);
    gap: 1.5rem;
  }

  .contacto__form-card {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .contacto__info {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr;
  }

  .contacto__item:nth-child(3),
  .contacto__item:nth-child(4) {
    grid-column: 1;
  }

  .contacto__map {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    height: 100%;
  }

  .contacto__map iframe {
    min-height: 100%;
  }
}

/* ── Eventos — hero full bleed ── */
.eventos-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.eventos-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.eventos-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.eventos-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 40%);
  pointer-events: none;
}

.eventos-hero__inner {
  position: relative;
  z-index: 2;
}

.eventos-hero__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__eyebrow--on-dark {
  color: var(--color-cohete);
}

.section__title--on-dark {
  color: var(--color-white);
}

.eventos-hero__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.eventos-hero__info {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eventos-hero__head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.eventos-hero__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-cohete) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-cohete) 45%, transparent);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eventos-hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.eventos-hero__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-white) 70%, transparent);
  line-height: 1.65;
  max-width: 48ch;
}

.eventos-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 1.35rem 1.4rem;
  list-style: none;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-black) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-white) 9%, transparent);
}

.eventos-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.eventos-hero__meta-item--full {
  grid-column: 1 / -1;
  gap: 0.45rem;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--color-white) 10%, transparent);
}

.eventos-hero__meta-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cohete);
}

.eventos-hero__meta-value {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-white);
}

.eventos-hero__meta-detail {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: color-mix(in srgb, var(--color-white) 68%, transparent);
}

.eventos-hero__cta {
  padding-top: 0.25rem;
}

.eventos-hero__cta .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 560px) {
  .eventos-hero__cta .btn {
    width: auto;
    min-width: 220px;
    justify-content: flex-start;
  }
}

.eventos-hero__poster {
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eventos-hero__poster-img {
  width: min(100%, 520px);
  height: auto;
  max-height: min(82vh, 760px);
  object-fit: contain;
  border-radius: var(--radius-card);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  background: transparent;
}

@media (min-width: 900px) {
  .eventos-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
  }

  .eventos-hero__poster {
    justify-content: flex-end;
  }

  .eventos-hero__poster-img {
    width: 100%;
    max-width: min(100%, 680px);
    max-height: min(88vh, 860px);
  }
}

/* ── Cursos — fondo con imagen ── */
#cursos {
  position: relative;
  isolation: isolate;
  background-color: var(--color-black);
}

#cursos::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/images/bg-serivicios.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  pointer-events: none;
}

#cursos::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

#cursos > .container {
  position: relative;
  z-index: 1;
}

.section--light.section--grid {
  background-image: linear-gradient(to right, var(--color-stage-deep) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

.section--dark .section__title {
  color: var(--color-white);
}
