/* ============================================================
   JESSICA VIVIANA RANGEL E. — PORTAFOLIO
   Sistema visual: Blanco y Negro elegante
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-soft: #1a1a1a;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #e8e8e8;
  --line-strong: #cccccc;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(0, 0, 0, 0.08);
  --overlay: rgba(10, 10, 10, 0.6);
  --accent-wa: #25D366;

  --ff-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.45, 1);

  --nav-h: 72px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
  --space-xxl: 144px;

  --max-w: 1440px;
  --max-w-text: 780px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== TIPOGRAFÍA ========== */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; }
.eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
section { position: relative; }

/* ========== INTRO VIDEO ========== */
#intro-screen {
  position: fixed; inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
#intro-screen video {
  width: 100%; height: 100%;
  object-fit: contain;
}
@media (orientation: portrait) {
  #intro-screen video { transform: scale(2.2); }
}
#intro-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ========== NAVBAR GLASS ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.navbar.hidden { transform: translateY(-100%); }
.navbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__logo { display: flex; align-items: center; }
.navbar__logo img { height: 36px; width: auto; }
.navbar__links {
  display: flex; gap: var(--space-lg);
  list-style: none;
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.05em;
}
.navbar__links a {
  position: relative; padding: 8px 0;
  transition: opacity 0.2s;
}
.navbar__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--fg);
  transition: width 0.3s var(--ease);
}
.navbar__links a:hover::after { width: 100%; }
.navbar__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.navbar__burger span {
  display: block; width: 24px; height: 1px; background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .navbar__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    font-size: 1.25rem;
    font-family: var(--ff-display);
  }
  .navbar__links.open { transform: translateY(0); }
  .navbar__burger { display: flex; }
}

/* ========== HERO ========== */
.hero { height: 280vh; position: relative; }
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  background: #ffffff;
}
.hero__text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--fg);
  width: 92%;
  max-width: 1000px;
  z-index: 5;
  opacity: 0;
  filter: blur(10px);
  will-change: transform, opacity, filter;
}
.hero__text em {
  font-style: italic;
  font-weight: 300;
}
.hero__text.animar {
  animation: textReveal 1.8s var(--ease) forwards;
}
@keyframes textReveal {
  0% { opacity: 0; filter: blur(12px); transform: translate(-50%, -40%); }
  100% { opacity: 1; filter: blur(0); transform: translate(-50%, -50%); }
}

.hero__img {
  position: absolute; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: contain;
  will-change: transform;
}
.hero__img--left  { transform: translateX(-100%); z-index: 1; }
.hero__img--right { transform: translateX(100%);  z-index: 2; }
.hero__img--top-m    { transform: translateY(-100%); z-index: 1; }
.hero__img--bottom-m { transform: translateY(100%);  z-index: 2; }
.hero__img--final {
  opacity: 0;
  z-index: 3;
  transform: scale(1.15);
  filter: blur(14px);
  will-change: opacity, transform, filter;
  transition: box-shadow 0.9s var(--ease);
}
.hero__img--final.revealed {
  animation: heroFinalSettle 1.4s var(--ease) both;
}
@keyframes heroFinalSettle {
  0%   { transform: scale(1.04); filter: blur(2px) brightness(1.15); }
  40%  { filter: blur(0) brightness(1.08); }
  100% { transform: scale(1); filter: blur(0) brightness(1); }
}
.desktop-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  #finalImgMobile { transform: scale(1.15); }
}

.hero__scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.9;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll-hint::after {
  content: ''; width: 1px; height: 50px;
  background: var(--fg);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ========== SECTION GENERIC ========== */
.section {
  padding: var(--space-xl) 0;
}
.section__header {
  max-width: var(--max-w-text);
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.section__header .eyebrow { display: block; margin-bottom: var(--space-sm); }
.section__header p { color: var(--muted); margin-top: var(--space-sm); }

/* ========== SOBRE MÍ ========== */
.about {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
}
.about__photo {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__body h2 { margin-bottom: var(--space-md); }
.about__body p { color: var(--fg-soft); font-size: 1.05rem; max-width: 62ch; }
.about__chips {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: var(--space-md);
}
@media (max-width: 860px) { .about__chips { justify-content: center; } }
.chip {
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--fg);
}
.about__cta {
  margin-top: var(--space-lg);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--fg);
  font-size: 0.875rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.about__cta:hover { background: var(--fg); color: #fff; }

/* ========== GALERÍA ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 600px)  { .gallery { grid-template-columns: 1fr; } }

.card {
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  border-radius: 18px;
  /* Scroll-cards entrance */
  opacity: 0;
  transform: translateY(60px) scale(0.94);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    box-shadow 0.5s var(--ease);
  transition-delay: calc(var(--card-i, 0) * 70ms);
  will-change: transform, opacity;
}
.card.card--in { opacity: 1; transform: translateY(0) scale(1); }

/* Inner wrapper con glass ring (Apple liquid glass) */
.card__inner {
  position: absolute; inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(0,0,0,0.04) inset;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.card:hover .card__inner {
  transform: translateY(-4px);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.18),
    0 1px 0 rgba(255,255,255,1) inset;
}

.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1s var(--ease);
}
.card:hover .card__img { transform: scale(1.09); }

.card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-md);
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.55) 100%);
  color: #fff;
}
.card__glass {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  color: #fff;
}
.card__glass .card__title { margin-bottom: 2px; font-size: 1.25rem; }
.card__glass .card__meta { font-size: 0.68rem; }
.card__title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 4px;
}
.card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}
.card__arrow {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(10px, -10px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.card:hover .card__arrow { opacity: 1; transform: translate(0, 0); }
.card__arrow svg { width: 18px; height: 18px; stroke: #fff; }

/* ========== BLOQUE 3D PRE-SERVICIOS ========== */
.scroll3d {
  height: 300vh;
  position: relative;
}
.scroll3d__sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  background: #ffffff;
}
.scroll3d__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  background: #ffffff;
}
.scroll3d__text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  padding: var(--space-md);
  /* cristal que aparece al final del scroll */
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.scroll3d__text.visible { opacity: 1; }

/* Panel de cristal Apple Liquid Glass centrado */
.scroll3d__glass-panel {
  padding: clamp(32px, 5vw, 60px) clamp(40px, 8vw, 100px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.10),
    inset 0 1.5px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 1px 0 rgba(255,255,255,0.6);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll3d__text .eyebrow {
  color: var(--muted);
  margin-bottom: 4px;
}
.scroll3d__text h2 {
  color: var(--fg);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
}

/* ========== CATEGORÍAS PROYECTOS ========== */
.cat-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: var(--space-lg);
}
.cat-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--ff-sans);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cat-filter:hover { border-color: var(--fg); color: var(--fg); transform: translateY(-1px); }
.cat-filter.active { background: var(--fg); color: #fff; border-color: var(--fg); }
.cat-filter__count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.65rem; font-weight: 600;
  background: rgba(255,255,255,0.2);
  color: inherit;
}
.cat-filter.active .cat-filter__count { background: rgba(255,255,255,0.25); }
.cat-filter:not(.active) .cat-filter__count { background: var(--line); color: var(--muted); }

/* ── Ver más (galería — desktop y móvil) ── */
.gallery-more {
  display: none;
  justify-content: center;
  margin-top: var(--space-md);
}
.gallery-more.visible { display: flex !important; }
.gallery-more__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
  font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.gallery-more__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.72);
}
.gallery-more__btn:active { transform: translateY(0); }

/* ========== SERVICIOS — Glass Cards Grid ========== */
.svc-section {
  background: #ffffff;
  color: var(--fg);
  position: relative;
  overflow: hidden;
}

/* Orbes decorativos de fondo */
.svc-bg-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.svc-bg-deco__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
}
.svc-bg-deco__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #d4e8ff 0%, #e8f4ff 60%, transparent 100%);
  top: -200px; left: -150px;
}
.svc-bg-deco__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #f0e8ff 0%, #f8f0ff 60%, transparent 100%);
  bottom: -100px; right: -120px;
}
.svc-bg-deco__orb--3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #fff0e8 0%, #fff8f0 60%, transparent 100%);
  top: 40%; left: 50%;
  transform: translateX(-50%);
}
.svc-section .container { position: relative; z-index: 1; }
.svc-section .section__header h2 { color: var(--fg); }
.svc-section .section__header p { color: var(--muted); }

/* Grid de cards */
.svc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--space-lg);
}

/* Card glass base */
.svc-item {
  position: relative;
  border-radius: 24px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.06),
    0 1px 0 rgba(255,255,255,0.9) inset;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  opacity: 0; transform: translateY(28px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s;
  transition-delay: calc(var(--svc-i, 0) * 70ms);
  cursor: pointer;
}
.svc-item.in { opacity: 1; transform: translateY(0); }
.svc-item:hover {
  box-shadow:
    0 16px 48px rgba(0,0,0,0.11),
    0 2px 0 rgba(255,255,255,1) inset;
  border-color: rgba(255,255,255,1);
  transform: translateY(-4px);
}
.svc-item.active {
  background: rgba(255,255,255,0.82);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.13),
    0 2px 0 rgba(255,255,255,1) inset;
}

/* Card header: número + ícono */
.svc-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
}

.svc-item__num {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.3s;
}
.svc-item:hover .svc-item__num,
.svc-item.active .svc-item__num { color: var(--fg); }

.svc-item__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(10,10,10,0.06);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.35s var(--ease);
}
.svc-item:hover .svc-item__icon { background: rgba(10,10,10,0.1); transform: rotate(-6deg) scale(1.08); }
.svc-item.active .svc-item__icon { background: var(--fg); }
.svc-item__icon svg { width: 22px; height: 22px; stroke: var(--fg); transition: stroke 0.3s; }
.svc-item.active .svc-item__icon svg { stroke: #fff; }

/* Título */
.svc-item__title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 2vw, 1.85rem);
  font-weight: 60;
  letter-spacing: -0.02em;
  line-height: 1.20;
  color: var(--fg);
  margin-bottom: 0;
  flex: 1;
}

/* Body expandible */
.svc-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease), margin-top 0.5s var(--ease);
  margin-top: 0;
}
.svc-item.active .svc-item__body {
  grid-template-rows: 1fr;
  margin-top: 16px;
}
.svc-item__body > * { overflow: hidden; }

.svc-item__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: var(--space-md);
}

/* Separador y toggle */
.svc-item__divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(10,10,10,0.1) 0%, transparent 100%);
  margin: 16px 0 0;
  transition: opacity 0.3s;
}
.svc-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  gap: 12px;
}
.svc-item__toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(10,10,10,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
  margin-left: auto;
}
.svc-item:hover .svc-item__toggle { border-color: rgba(10,10,10,0.35); }
.svc-item.active .svc-item__toggle {
  background: var(--fg);
  border-color: var(--fg);
  transform: rotate(180deg);
}
.svc-item__toggle svg { width: 16px; height: 16px; stroke: var(--fg); transition: stroke 0.3s; }
.svc-item.active .svc-item__toggle svg { stroke: #fff; }
.svc-icon-plus  { display: block; }
.svc-icon-minus { display: none; }
.svc-item.active .svc-icon-plus  { display: none; }
.svc-item.active .svc-icon-minus { display: block; }

/* Botón Solicitar */
.svc-item__solicitar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(140,100,10,0.08);
  border: 1px solid rgba(140,100,10,0.3);
  font-family: var(--ff-sans);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6b4a00;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.svc-item__solicitar:hover {
  background: #8c6400; color: #fff;
  border-color: #8c6400;
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(140,100,10,0.3);
}
.svc-item__solicitar svg { transition: transform 0.3s var(--ease); }
.svc-item__solicitar:hover svg { transform: translateX(3px); stroke: #fff; }

/* Card destacada (Diseño Arquitectónico — índice 1) */
.svc-item--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #f5e6c8 0%, #ecdaaa 40%, #e8d090 100%);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-color: rgba(212,175,55,0.4);
  box-shadow:
    0 4px 32px rgba(180,140,20,0.18),
    0 1px 0 rgba(255,245,200,0.9) inset;
}
.svc-item--featured:hover {
  box-shadow:
    0 16px 56px rgba(180,140,20,0.28),
    0 2px 0 rgba(255,250,220,1) inset;
  border-color: rgba(212,175,55,0.65);
}
.svc-item--featured::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,245,180,0.55) 0%, transparent 70%);
  pointer-events: none;
}
.svc-item--featured .svc-item__num { color: rgba(140,100,10,0.2); }
.svc-item--featured:hover .svc-item__num,
.svc-item--featured.active .svc-item__num { color: rgba(140,100,10,0.35); }
.svc-item--featured .svc-item__title {
  color: #3d2b00;
  font-size: clamp(2.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
}
.svc-item--featured .svc-item__icon {
  background: rgba(140,100,10,0.12);
  border: 1px solid rgba(140,100,10,0.2);
}
.svc-item--featured:hover .svc-item__icon { background: rgba(140,100,10,0.2); }
.svc-item--featured.active .svc-item__icon { background: #8c6400; border-color: #8c6400; }
.svc-item--featured .svc-item__icon svg { stroke: #6b4a00; }
.svc-item--featured.active .svc-item__icon svg { stroke: #fff; }
.svc-item--featured .svc-item__desc { color: rgba(61,43,0,0.75); font-size: 0.95rem; }
.svc-item--featured .svc-item__divider {
  background: linear-gradient(90deg, rgba(140,100,10,0.25) 0%, transparent 100%);
}
.svc-item--featured .svc-item__toggle {
  border-color: rgba(140,100,10,0.25);
}
.svc-item--featured:hover .svc-item__toggle { border-color: rgba(140,100,10,0.5); }
.svc-item--featured.active .svc-item__toggle { background: #8c6400; border-color: #8c6400; }
.svc-item--featured .svc-item__toggle svg { stroke: #6b4a00; }
.svc-item--featured.active .svc-item__toggle svg { stroke: #fff; }
.svc-item--featured .svc-item__solicitar {
  background: rgba(140,100,10,0.1);
  border-color: rgba(140,100,10,0.3);
  color: #5a3d00;
}
.svc-item--featured .svc-item__solicitar:hover {
  background: #8c6400; color: #fff;
  border-color: #8c6400;
  box-shadow: 0 6px 20px rgba(140,100,10,0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .svc-list { grid-template-columns: repeat(2, 1fr); }
  .svc-item--featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc-item--featured { grid-column: span 1; }
  .svc-item__title { font-size: 1.9rem; }
}

/* ========== MINI-MODAL SERVICIOS ========== */
.svc-mini-modal {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.svc-mini-modal.open { opacity: 1; pointer-events: auto; }

.svc-mini-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.svc-mini-modal__panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  max-height: 90dvh; overflow-y: auto;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.25),
    inset 0 1.5px 0 rgba(255,255,255,1);
  transform: scale(0.93) translateY(20px);
  transition: transform 0.4s var(--ease);
}
.svc-mini-modal.open .svc-mini-modal__panel { transform: scale(1) translateY(0); }

.svc-mini-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.06);
  transition: background 0.2s;
}
.svc-mini-modal__close:hover { background: rgba(0,0,0,0.12); }
.svc-mini-modal__close svg { width: 16px; height: 16px; }

.svc-mini-modal__profile {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}
.svc-mini-modal__photo {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.svc-mini-modal__hello strong { display: block; font-size: 0.9rem; font-family: var(--ff-display); font-weight: 500; }
.svc-mini-modal__hello p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.svc-mini-modal__service {
  margin-bottom: var(--space-md);
}
.svc-mini-modal__service .eyebrow { display: block; margin-bottom: 4px; }
.svc-mini-modal__label {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
}

/* Mini form */
.svc-mini-form { display: flex; flex-direction: column; gap: 20px; }
.svc-mini-form__field { display: grid; gap: 6px; }
.svc-mini-form__field label {
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.svc-mini-form__field input,
.svc-mini-form__field textarea {
  font-family: var(--ff-sans); font-size: 0.95rem;
  padding: 12px 0;
  border: none; border-bottom: 1px solid var(--line-strong);
  background: transparent; color: var(--fg); width: 100%;
  transition: border-color 0.3s;
  resize: none;
}
.svc-mini-form__field input:focus,
.svc-mini-form__field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.svc-mini-form__submit {
  margin-top: 8px;
  padding: 16px 28px;
  background: #25D366; color: #fff;
  border: none; border-radius: 14px;
  font-family: var(--ff-sans);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}
.svc-mini-form__submit:hover { background: #1db954; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,0.45); }
@media (max-width: 500px) {
  .svc-mini-modal { align-items: flex-end; padding: 0; }
  .svc-mini-modal__panel { border-radius: 28px 28px 0 0; max-height: 95dvh; }
}

/* ========== POPUP VENTA ========== */
.venta-popup {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.venta-popup.open { opacity: 1; visibility: visible; }

.venta-popup__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.venta-popup__card {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 860px;
  max-height: calc(100dvh - 40px);
  aspect-ratio: 2048 / 1529;
  display: grid;
  grid-template-rows: 1fr;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
  transform: scale(0.93) translateY(28px);
  transition: transform 0.5s var(--ease);
}
.venta-popup.open .venta-popup__card { transform: scale(1) translateY(0); }

/* Botón cerrar — solo visible en slide 4 */
.venta-popup__close {
  position: absolute; top: 14px; right: 14px; z-index: 30;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  transition: background 0.2s, opacity 0.35s var(--ease);
  opacity: 0; pointer-events: none;
}
.venta-popup[data-slide="3"] .venta-popup__close { opacity: 1; pointer-events: auto; }
.venta-popup__close:hover { background: rgba(0,0,0,0.78); }
.venta-popup__close svg { width: 16px; height: 16px; }

/* ── Contenedor de slides — ocupa toda la card ── */
.venta-slider-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.venta-slider {
  position: relative;
  width: 100%; height: 100%;
}

/* ── Todos los slides superpuestos, solo el activo visible ── */
.venta-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.venta-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* ── Slide 1 desktop: imagen izquierda + texto derecha ── */
.venta-slide--split {
  display: grid;
  grid-template-columns: 52% 48%;
  background: #fff;
}
.venta-slide__img-col {
  background: #ffffff;
  overflow: hidden;
}
.venta-slide__img-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
}
.venta-slide__text-col {
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
  display: flex; flex-direction: column;
  justify-content: center; gap: 18px;
  background: #fff; overflow: hidden;
}

.venta-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.venta-eyebrow--light { color: rgba(255,255,255,0.45); }

.venta-subtitle {
  font-family: var(--ff-sans);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #D4AF37; margin-top: -8px;
}

.venta-title {
  font-family: 'Poppins', var(--ff-sans);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.15; color: var(--fg);
}
.venta-desc {
  font-size: 0.875rem; color: var(--muted);
  line-height: 1.72; max-width: 30ch;
}
.venta-next-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 100px;
  background: var(--fg); color: #fff;
  font-family: var(--ff-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; cursor: pointer; align-self: flex-start;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.venta-next-btn:hover { opacity: 0.8; transform: translateX(3px); }

/* ── Slides 2 & 3: flyer completo ── */
.venta-slide--img { background: #f0ede7; }
.venta-slide--img img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* ── Slide 4: CTA oscuro ── */
.venta-slide--cta {
  background: linear-gradient(150deg, #111 0%, #1a1a1a 55%, #0a0a0a 100%);
  display: flex; align-items: center; justify-content: center;
}
.venta-cta {
  text-align: center;
  padding: clamp(36px, 5vw, 64px) clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  color: #fff; width: 100%;
}
.venta-cta__title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700; color: #fff;
  line-height: 1.08; letter-spacing: -0.02em;
}
.venta-cta__title em { font-style: italic; font-weight: 300; }
.venta-cta__desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  max-width: 38ch; line-height: 1.65;
}
.venta-cta__btns {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-top: 6px;
}
.venta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--ff-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.25s;
}
.venta-btn--wa { background: #25D366; color: #fff; box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
.venta-btn--wa:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(37,211,102,0.55); }
.venta-btn--outline { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.25); }
.venta-btn--outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ── Flechas ── */
.venta-arrow {
  position: absolute; top: 50%; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.venta-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.venta-arrow--prev { left: 14px; }
.venta-arrow--next { right: 14px; }
.venta-arrow svg { width: 16px; height: 16px; stroke: var(--fg); }

/* ── Dots ── */
.venta-dots {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10;
}
.venta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s, width 0.3s var(--ease), border-radius 0.3s var(--ease);
}
.venta-dot.active { background: #fff; width: 22px; border-radius: 4px; }
.venta-popup[data-slide="0"] .venta-dot { background: rgba(0,0,0,0.18); }
.venta-popup[data-slide="0"] .venta-dot.active { background: var(--fg); }

/* ── Móvil: centrado, portrait 1131×1600 ── */
@media (max-width: 640px) {
  .venta-popup { padding: 16px; align-items: center; }
  .venta-popup__card {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    aspect-ratio: 1131 / 1600;
    border-radius: 20px;
  }

  /* Slide 1 móvil: imagen arriba (V1), texto abajo */
  .venta-slide--split {
    grid-template-columns: 1fr;
    grid-template-rows: 55% 45%;
  }
  .venta-slide__img-col img { object-position: center top; }
  .venta-slide__text-col { padding: 18px 22px; gap: 10px; justify-content: center; }
  .venta-title { font-size: 1rem; }
  .venta-subtitle { font-size: 0.68rem; margin-top: -6px; }
  .venta-desc { font-size: 0.78rem; max-width: 100%; }
  .venta-next-btn { padding: 9px 16px; font-size: 0.66rem; }

  /* Slide 4 */
  .venta-cta { padding: 28px 20px; gap: 16px; }
  .venta-cta__title { font-size: 1.8rem; }
  .venta-cta__btns { flex-direction: column; align-items: stretch; }
  .venta-btn { width: 100%; justify-content: center; padding: 13px 20px; }

  .venta-arrow--prev { left: 10px; }
  .venta-arrow--next { right: 10px; }
  .venta-dots { bottom: 12px; }
}

/* ========== FORMULARIO ========== */
#contacto { position: relative; }
#contacto::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 80% 10%, rgba(0,0,0,0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f1ee 100%);
  z-index: -1;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: var(--space-lg); } }

.form {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: 24px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.contact__info h2 { margin-bottom: var(--space-md); }
.contact__info p { color: var(--muted); max-width: 48ch; margin-bottom: var(--space-md); }
.contact__list { list-style: none; margin-top: var(--space-md); }
.contact__list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  font-size: 0.95rem;
}
.contact__list svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--fg); }

.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--ff-sans);
  font-size: 1rem;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  width: 100%;
  transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--fg);
}
.field textarea { resize: vertical; min-height: 100px; }
.field--error input, .field--error select, .field--error textarea {
  border-bottom-color: #c00;
}
.field__error {
  font-size: 0.75rem;
  color: #c00;
  min-height: 1em;
}
.form__submit {
  justify-self: start;
  padding: 16px 36px;
  background: var(--fg); color: #fff;
  border: 1px solid var(--fg);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
  transition: background 0.3s, color 0.3s;
}
.form__submit:hover { background: transparent; color: var(--fg); }
.form__submit svg { width: 18px; height: 18px; stroke: currentColor; }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-lg) 0;
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  align-items: center; justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer__logo img { height: 32px; opacity: 0.85; }
.footer__social { display: flex; gap: var(--space-md); }
.footer__social a { transition: color 0.2s; }
.footer__social a:hover { color: var(--fg); }

/* ========== WHATSAPP FAB ========== */
.fab-wa {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 400;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-wa);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: fabPulse 3s ease-in-out infinite;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 32px; height: 32px; fill: #fff; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50%      { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 0 0 18px rgba(37, 211, 102, 0); }
}

.fab-tooltip {
  position: fixed;
  right: 100px; bottom: 32px;
  z-index: 401;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px 14px 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  display: flex; align-items: center; gap: 12px;
  max-width: 260px;
  opacity: 0; transform: translateX(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.fab-tooltip.show { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.fab-tooltip::after {
  content: ''; position: absolute;
  right: -8px; top: 50%;
  width: 14px; height: 14px;
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: translateY(-50%) rotate(-45deg);
}
.fab-tooltip__photo {
  width: 42px; height: 42px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--line);
}
.fab-tooltip__photo img { width: 100%; height: 100%; object-fit: cover; }
.fab-tooltip__text {
  font-size: 0.85rem; color: var(--fg); line-height: 1.3;
}
.fab-tooltip__close {
  position: absolute; top: 4px; right: 6px;
  width: 22px; height: 22px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1;
}
@media (max-width: 500px) {
  .fab-tooltip { right: 20px; bottom: 95px; left: 20px; max-width: none; }
  .fab-tooltip::after { display: none; }
}

/* ========== MODAL ========== */
.modal {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-md);
}
.modal.open { display: flex; }
.modal__body {
  background: #fff;
  width: 100%; max-width: 960px;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.modal__header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal__header h3 { font-size: 1.25rem; }
.modal__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal__close:hover { background: var(--line); }
.modal__close svg { width: 18px; height: 18px; stroke: var(--fg); }
.modal__content { flex: 1; overflow-y: auto; padding: var(--space-md); }
.modal__content iframe { width: 100%; height: 70vh; border: 0; border-radius: 4px; }


/* ========== REVEAL ANIMATIONS ========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========== SCROLL3D LOADER ========== */
.scroll3d-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  background: #ffffff;
  z-index: 10;
  transition: opacity 0.6s var(--ease);
}
.scroll3d-loader.done { opacity: 0; pointer-events: none; }
.scroll3d-loader__ring {
  width: 46px; height: 46px;
  border: 2px solid rgba(0,0,0,0.12);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: scroll3dSpin 1s linear infinite;
}
.scroll3d-loader__text {
  color: var(--muted);
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
@keyframes scroll3dSpin { to { transform: rotate(360deg); } }

/* ========== PROYECTOS — fondo tintado para resaltar glass cards ========== */
#proyectos { position: relative; }
#proyectos::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 0% 30%, rgba(0,0,0,0.04), transparent 60%),
    radial-gradient(900px 500px at 100% 70%, rgba(0,0,0,0.04), transparent 60%),
    linear-gradient(180deg, #fafafa 0%, #f1efec 100%);
  z-index: -1;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fab-wa { animation: none; }
}
