/* ─────────────────────────────────────────────────────────────────────
   contacto-scrolly.css — Experiencia Contacto (mismo stack que Nosotros).
   Escenas a pantalla completa, fondo de color por escena (negro/papel/rojo)
   + capa three.js de fotos scroll-driven. Scopeado a .con2-*.
   ───────────────────────────────────────────────────────────────────── */

/* Topbar cohesivo (glass oscuro) sólo en esta página */
body.con2-active { background: #0A0A0A; }
body.con2-active .topbar { position: fixed; top: 0; left: 0; right: 0; background: rgba(10,10,10,0.5); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,0.10); }
body.con2-active .topbar-title small { color: rgba(255,255,255,0.62); }
body.con2-active .topbar-nav a { color: rgba(255,255,255,0.82); }
body.con2-active .topbar-nav a:hover { background: rgba(255,255,255,0.10); color: #fff; }
body.con2-active .topbar-nav a.is-active { background: #fff; color: #0A0A0A; }
body.con2-active .app { background: transparent; }
body.con2-active .site-footer { position: relative; z-index: 6; }

/* Capas fijas */
.con2 { position: relative; }
.con2 a { color: inherit; }
.con2 a:hover { color: inherit; }
.con2-bg { position: fixed; inset: 0; z-index: 0; background: #0A0A0A; transition: background-color 0.7s ease; will-change: background-color; }
.con2-canvas { position: fixed; inset: 0; z-index: 1; width: 100vw; height: 100vh; display: block; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.con2.is-3d .con2-canvas { opacity: 1; }
.con2-scenes { position: relative; z-index: 2; }
.con2-grain { position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.con2-flash { position: fixed; inset: 0; z-index: 45; pointer-events: none; background: var(--red); transform: scaleY(0); transform-origin: top; will-change: transform; }

/* ── Escenas ─────────────────────────────────────────────────────────── */
.con2-scene { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: clamp(96px, 14vh, 150px) clamp(24px, 6vw, 120px) clamp(64px, 9vh, 110px); color: #fff; }
.con2-scene[data-theme="light"] { color: var(--ink); }
.con2-wrap { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; }
.con2-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.con2-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.con2-col-space { min-height: 40vh; }

/* Tipografía */
.con2-display { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.01em; margin: 0; }
.con2-eyebrow { font-family: var(--body); font-weight: 600; font-size: clamp(12px, 1vw, 14px); letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.con2-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--red); }
.con2-scene[data-theme="red"] .con2-eyebrow { color: #fff; }
.con2-scene[data-theme="red"] .con2-eyebrow::before { background: rgba(255,255,255,0.7); }
.con2-title { font-size: clamp(44px, 7.4vw, 132px); }
.con2-title-xl { font-size: clamp(58px, 11.5vw, 210px); }
.con2-lead { margin-top: 28px; max-width: 560px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 300; line-height: 1.5; color: rgba(255,255,255,0.8); }
.con2-scene[data-theme="light"] .con2-lead { color: var(--muted); }
.con2-cue { position: absolute; left: clamp(24px, 6vw, 120px); bottom: clamp(30px, 6vh, 60px); font-family: var(--body); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 12px; }
.con2-cue::before { content: ""; width: 1px; height: 40px; background: rgba(255,255,255,0.28); }

/* Reveal */
.con2.is-anim .con2-up { opacity: 0; transform: translateY(38px); }
.con2:not(.is-anim) .con2-up { opacity: 1; transform: none; }

/* ── Portada ─────────────────────────────────────────────────────────── */
.con2-intro .con2-wrap { max-width: 1400px; }
.con2-intro .con2-scrim { background: radial-gradient(90% 80% at 20% 76%, rgba(10,10,10,0.8), transparent 62%); }

/* ── Correo ──────────────────────────────────────────────────────────── */
.con2-mail { display: inline-block; margin-top: 6px; font-family: var(--body); font-weight: 600; font-size: clamp(26px, 4.4vw, 74px); line-height: 1.02; letter-spacing: -0.03em; text-decoration: none; color: inherit; }
.con2-mail span { display: block; }
.con2-mail em { font-style: normal; color: var(--red); }
.con2-mail::after { content: ""; display: block; height: 3px; margin-top: 14px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.con2-mail:hover::after { transform: scaleX(1); }
.con2-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.con2-chip { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid rgba(10,10,10,0.16); background: transparent; font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; color: inherit; text-decoration: none; cursor: pointer; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease; }
.con2-chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.con2-chip:active { transform: scale(0.97); }
.con2-chip.is-done { background: var(--red); border-color: var(--red); color: #fff; }
.con2-scene[data-theme="red"] .con2-chip { border-color: rgba(255,255,255,0.55); }
.con2-scene[data-theme="red"] .con2-chip:hover { background: #fff; border-color: #fff; color: var(--red); }

/* ── Ubicación ───────────────────────────────────────────────────────── */
.con2-ubicacion .con2-scrim { background: linear-gradient(180deg, rgba(140,2,12,0.35), rgba(140,2,12,0.12)); }
.con2-addr { margin: 6px 0 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 78px); line-height: 1.02; letter-spacing: 0.005em; }
.con2-addr span { display: block; }
.con2-addr .con2-addr-sm { font-size: clamp(20px, 2.4vw, 38px); color: rgba(255,255,255,0.82); margin-top: 12px; }

/* ── Redes ───────────────────────────────────────────────────────────── */
.con2-redes .con2-scrim { background: linear-gradient(180deg, rgba(10,10,10,0.6), rgba(10,10,10,0.82)); }
.con2-social-list { margin-top: 40px; display: flex; flex-direction: column; gap: 0; max-width: 860px; }
.con2-social { display: grid; grid-template-columns: 32px minmax(0, 200px) minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.6vw, 34px); padding: clamp(16px, 2.2vh, 24px) 4px; border-top: 1px solid rgba(255,255,255,0.14); text-decoration: none; color: #fff; transition: padding-left 0.25s cubic-bezier(.2,.7,.2,1), background 0.25s ease; }
.con2-social:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.con2-social:hover { padding-left: 16px; background: rgba(255,255,255,0.05); }
.con2-social-ico { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; transition: color 0.2s ease, transform 0.25s ease; }
.con2-social-ico svg { width: 32px; height: 32px; display: block; }
.con2-social:hover .con2-social-ico { color: var(--red); transform: scale(1.06); }
.con2-social-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 38px); line-height: 1; }
.con2-social-handle { font-family: var(--body); font-weight: 500; font-size: clamp(14px, 1.3vw, 19px); color: rgba(255,255,255,0.62); }
.con2-social-arrow { font-family: var(--body); font-size: 18px; color: rgba(255,255,255,0.45); transition: transform 0.25s ease, color 0.2s ease; }
.con2-social:hover .con2-social-arrow { color: #fff; transform: translate(3px, -3px); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .con2-cols { grid-template-columns: 1fr; gap: 24px; }
  .con2-col-space { display: none; }
  body.con2-active .topbar-nav { display: none; }
}
@media (max-width: 760px) {
  .con2-scene { padding: clamp(88px, 13vh, 120px) 22px 64px; min-height: 100svh; }
  .con2-social { grid-template-columns: 28px 1fr auto; gap: 14px 16px; }
  .con2-social-ico, .con2-social-ico svg { width: 28px; height: 28px; }
  .con2-social-handle { grid-column: 2 / 4; color: rgba(255,255,255,0.55); }
  .con2-mail { letter-spacing: -0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  .con2-canvas { display: none; }
}

/* Menú móvil sobre fondo oscuro */
body.con2-active .topbar-burger span { background: #fff; }
body.con2-active .nav-sheet { background: rgba(10,10,10,0.98); }
body.con2-active .nav-sheet-list a { color: #fff; border-bottom-color: rgba(255,255,255,0.12); }
body.con2-active .nav-sheet-list a.is-active { color: var(--red); }
