/* ============================================================
   RED PRO — V2 sub-page skin (cohesive X-ray art direction)
   Scope: body.v2sub — themes the EXISTING shared classes so all
   inner pages (services / projects / about / legal / 404) match
   the V2 homepage. Loaded AFTER styles.css.
   ============================================================ */

body.v2sub {
  background: #0A0E14;
  color: #E8EAEE;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- PAGE HEADER → X-ray band ---------- */
body.v2sub .page-header {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6,9,14,.86) 0%, rgba(6,9,14,.55) 55%, #0A0E14 100%),
    url('xray-band.webp') center 30% / cover no-repeat;
  padding: calc(70px + clamp(70px, 11vw, 150px)) 24px clamp(70px, 9vw, 120px);
  text-align: center;
}
body.v2sub .page-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,50,50,.6), transparent);
}
body.v2sub .page-header .eyebrow {
  font: 600 11px/1 'Inter', sans-serif; letter-spacing: .34em; text-transform: uppercase;
  color: #ff8d8d; display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
body.v2sub .page-header .eyebrow::before,
body.v2sub .page-header .eyebrow::after {
  content: ""; width: 30px; height: 1px; background: rgba(255,141,141,.6);
}
body.v2sub .page-header h1 {
  font: 700 clamp(2.3rem, 5.4vw, 4.4rem)/1.08 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em; color: #fff; margin: 0 auto 18px; max-width: 22ch; text-wrap: balance;
}
body.v2sub .page-header h1 em { font-style: italic; color: rgba(255,255,255,.45); }
body.v2sub .page-header p { color: rgba(255,255,255,.66); font-size: clamp(15px, 1.25vw, 17.5px); line-height: 1.65; max-width: 60ch; margin: 0 auto; }

/* ---------- section headings ---------- */
body.v2sub .section-heading h2,
body.v2sub h2 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.018em; color: #fff;
}
body.v2sub .section-heading h2 .ghost,
body.v2sub h2 .ghost { color: rgba(255,255,255,.28); }
body.v2sub .section-heading p { color: rgba(232,234,238,.55); }
body.v2sub .eyebrow-label {
  font: 600 11px/1 'Inter', sans-serif; letter-spacing: .34em; text-transform: uppercase;
  color: #E63232; display: inline-flex; align-items: center; gap: 14px;
}
body.v2sub .eyebrow-label::before { content: ""; width: 34px; height: 1px; background: #E63232; }

/* sections that were light → obsidian rhythm */
body.v2sub section { background: transparent; }
body.v2sub .alt-bg { background: #0E1420 !important; }

/* ---------- service cards (services.html grid) ---------- */
body.v2sub .service-card {
  background: linear-gradient(135deg, #11161F 0%, #0A0E14 70%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  box-shadow: none;
  position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s;
}
body.v2sub .service-card::before {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(230,50,50,.14), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 80px);
}
body.v2sub .service-card:hover { transform: translateY(-5px); border-color: rgba(230,50,50,.35); }
body.v2sub .service-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, #E63232 35%, #ffb46b 65%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.16,1,.3,1);
}
body.v2sub .service-card:hover::after { transform: scaleX(1); }
body.v2sub .service-card h3 { color: #fff; font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.01em; }
body.v2sub .service-card p { color: rgba(232,234,238,.6); }
body.v2sub .service-card .icon-wrap { background: rgba(230,50,50,.12); }
body.v2sub .service-card .icon-wrap svg { fill: #ff8d8d; }

/* ---------- project cards (projects.html) — X-RAY HOVER ---------- */
body.v2sub .project-card {
  background: linear-gradient(135deg, #11161F 0%, #0A0E14 70%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; overflow: hidden; box-shadow: none;
}
body.v2sub .project-header { position: relative; isolation: isolate; }
/* LIVE X-RAY SCAN — reality above the line, skeleton below, forever sweeping */
body.v2sub .project-header .xr {
  position: absolute; inset: 0; z-index: 2;
  background-size: cover; background-position: center;
  opacity: 1; pointer-events: none;
  clip-path: inset(88% 0 0 0);
  animation: v2scan 9s cubic-bezier(.45,.05,.55,.95) infinite alternate;
  will-change: clip-path;
}
body.v2sub .project-header .scanline {
  position: absolute; left: -2%; right: -2%; height: 3px; z-index: 3; top: 88%;
  background: linear-gradient(90deg, transparent, #E63232 22%, #FFB46B 50%, #E63232 78%, transparent);
  box-shadow: 0 0 18px 2px rgba(230,50,50,.85), 0 0 42px 6px rgba(255,140,80,.35);
  animation: v2scanline 9s cubic-bezier(.45,.05,.55,.95) infinite alternate;
  pointer-events: none;
}
@keyframes v2scan     { 0% { clip-path: inset(88% 0 0 0); } 100% { clip-path: inset(6% 0 0 0); } }
@keyframes v2scanline { 0% { top: 88%; } 100% { top: 6%; } }
/* hover = the scan hurries (alive, responsive) */
body.v2sub .project-card:hover .project-header .xr,
body.v2sub .project-card:hover .project-header .scanline { animation-duration: 3.2s; }
@media (prefers-reduced-motion: reduce) {
  body.v2sub .project-header .xr { animation: none; clip-path: inset(45% 0 0 0); }
  body.v2sub .project-header .scanline { animation: none; top: 45%; }
}
/* scan chip */
body.v2sub .project-header .xr-chip {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font: 700 9px/1 ui-monospace, Menlo, monospace; letter-spacing: .28em; text-transform: uppercase;
  color: #7FD8E8; background: rgba(8,12,18,.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(127,216,232,.35); border-radius: 999px; padding: 8px 12px;
  display: inline-flex; align-items: center; gap: 7px;
  opacity: 1; transform: none;
}
body.v2sub .project-header .xr-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #7FD8E8; box-shadow: 0 0 8px #7FD8E8;
  animation: v2pulse 1.6s ease-in-out infinite;
}
@keyframes v2pulse { 0%,100% { opacity: .5 } 50% { opacity: 1 } }
body.v2sub .project-card h3 { color: #fff; font-family: 'Playfair Display', Georgia, serif; }
body.v2sub .project-content p { color: rgba(232,234,238,.62); }
body.v2sub .project-meta span { color: rgba(232,234,238,.5); }
body.v2sub .project-meta strong { color: rgba(255,255,255,.8); }
body.v2sub .project-badge {
  background: rgba(230,50,50,.14); color: #ff9d9d; border: 1px solid rgba(230,50,50,.3);
}

/* ---------- stats ---------- */
body.v2sub .stats-bar { background: transparent; }
body.v2sub .stat-item h4, body.v2sub .stat-item .stat-h { color: #E63232; }
body.v2sub .stat-item p { color: rgba(232,234,238,.55); }

/* ---------- accordion (services detail) ---------- */
body.v2sub details, body.v2sub .accordion-item {
  background: #0E1420; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; color: #E8EAEE;
}
body.v2sub details summary { color: #fff; }
body.v2sub details p, body.v2sub details li { color: rgba(232,234,238,.62); }

/* ---------- about page: team & contact ---------- */
body.v2sub .team-section .team-card, body.v2sub .team-card {
  background: linear-gradient(135deg, #11161F 0%, #0A0E14 70%);
  border: 1px solid rgba(255,255,255,.07); color: #E8EAEE;
}
body.v2sub .team-card h3, body.v2sub .team-card h4 { color: #fff; }
body.v2sub input, body.v2sub textarea, body.v2sub select {
  background: #0E1420 !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
body.v2sub input::placeholder, body.v2sub textarea::placeholder { color: rgba(232,234,238,.4); }
body.v2sub label { color: rgba(232,234,238,.75); }

/* ---------- CTA strip ---------- */
body.v2sub .cta-strip {
  position: relative; background: #0A0E14 !important; overflow: hidden;
}
body.v2sub .cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 75% at 50% 115%, rgba(230,50,50,.35), transparent 70%);
}
body.v2sub .cta-strip h2 { color: #fff; position: relative; font-family: 'Playfair Display', Georgia, serif; }
body.v2sub .cta-strip p { color: rgba(255,255,255,.62); position: relative; }
body.v2sub .cta-strip .hero-cta { position: relative; }

/* ---------- legal pages ---------- */
body.v2sub.legal main, body.v2sub .legal-content {
  color: rgba(232,234,238,.72);
}
body.v2sub .legal-content h2, body.v2sub .legal-content h3 { color: #fff; }
body.v2sub .legal-content a { color: #ff8d8d; }

/* generic text colors on dark */
body.v2sub p { color: rgba(232,234,238,.62); }
body.v2sub h3, body.v2sub h4 { color: #fff; }

/* keep injected footer/cookie/whatsapp as styles.css defines (already dark-compatible) */
body.v2sub .project-header .label { z-index: 3; position: relative; }
body.v2sub .cookie-banner p, body.v2sub .cookie-banner { color: var(--text-dark); }
body.v2sub .cookie-banner p a { color: var(--primary-dark); }
.site-footer .eyebrow-label, body.v2sub .site-footer .eyebrow-label { color: #FF6B6B; }
.site-footer .eyebrow-label::before { background: #FF6B6B; }
body.v2sub .project-content h2.pcard-t { font: 700 1.5rem/1.2 'Playfair Display', Georgia, serif; color: #fff; margin: 0 0 10px; }
body.v2sub .tour-btn { display:inline-flex; align-items:center; gap:8px; margin:2px 0 14px;
  font:700 10.5px/1 'Inter',sans-serif; letter-spacing:.22em; text-transform:uppercase;
  color:#7FD8E8; text-decoration:none; border:1px solid rgba(127,216,232,.4); border-radius:999px; padding:11px 16px;
  transition:background .3s, border-color .3s; }
body.v2sub .tour-btn:hover { background:rgba(127,216,232,.12); border-color:#7FD8E8; }

/* ============================================================
   2026-06-11 — language-aware page-header eyebrow + contrast pass
   ============================================================ */
/* BUG fix: .page-header .eyebrow {display:inline-flex} (0,3,0) was beating
   [data-lang="en"]{display:none} (0,1,0) → both ES+EN eyebrows rendered. */
body.v2sub .page-header .eyebrow[data-lang="en"] { display: none; }
body.v2sub.lang-en .page-header .eyebrow[data-lang="es"] { display: none; }
body.v2sub.lang-en .page-header .eyebrow[data-lang="en"] { display: inline-flex; }

/* readable muted text on dark (lift toward WCAG AA on #0A0E14) */
body.v2sub .page-header p { color: rgba(255,255,255,.84); }
body.v2sub .section-heading p,
body.v2sub .stat-item p { color: rgba(232,234,238,.76); }
body.v2sub .project-content p,
body.v2sub .service-card p,
body.v2sub details p, body.v2sub details li,
body.v2sub p { color: rgba(232,234,238,.78); }
body.v2sub .project-meta span { color: rgba(232,234,238,.7); }
body.v2sub .project-meta strong { color: rgba(255,255,255,.92); }

/* ============================================================
   2026-06-29 — 3D X-ray tours launcher strip (#recorridos)
   ============================================================ */
body.v2sub .tours-launch { padding: clamp(40px,6vw,72px) 0 clamp(18px,3vw,34px); }
body.v2sub .tours-launch .tl-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
body.v2sub .tours-launch .tl-head .eyebrow-label { justify-content: center; }
body.v2sub .tours-launch .tl-head p { color: rgba(232,234,238,.74); font-size: clamp(14px,1.2vw,16px); line-height: 1.62; margin: 16px auto 0; max-width: 60ch; }
body.v2sub .tl-row { display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
body.v2sub .tl-row::-webkit-scrollbar { display: none; }
body.v2sub .tl-tile { position: relative; flex: 0 0 auto; width: clamp(150px, 22vw, 222px); aspect-ratio: 3 / 4;
  border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; background-color: #0E1420;
  border: 1px solid rgba(255,255,255,.1); text-decoration: none; isolation: isolate; scroll-snap-align: start;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s; }
body.v2sub .tl-tile::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,12,20,.05) 28%, rgba(8,12,20,.88)); }
body.v2sub .tl-tile:hover { transform: translateY(-5px); border-color: rgba(230,50,50,.5); }
body.v2sub .tl-tile .tl-name { position: absolute; left: 14px; bottom: 14px; right: 14px; z-index: 2; color: #fff;
  font: 700 15px/1.18 'Playfair Display', Georgia, serif; text-wrap: balance; }
body.v2sub .tl-tile .tl-play { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; font-size: 11px; color: #fff; padding-left: 2px;
  background: rgba(230,50,50,.9); box-shadow: 0 0 16px rgba(230,50,50,.55); }
@media (max-width: 600px) { body.v2sub .tl-tile { width: 142px; } }

/* ----- About: team mosaic (replaces the "foto próximamente" placeholder) ----- */
.about-visual { padding: 14px; }
.team-mosaic { position: relative; width: 100%; height: 100%; display: grid;
  grid-template-columns: repeat(2, 1fr); grid-template-rows: 1.5fr 1fr 1fr; gap: 10px; }
.team-mosaic figure { margin: 0; overflow: hidden; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08); background: #0d1119; }
.team-mosaic .tm-lead { grid-column: 1 / -1; }
.team-mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  filter: saturate(.92) contrast(1.04); display: block; }
.team-mosaic .tm-scan { position: absolute; left: 6px; right: 6px; height: 2px; top: 80%; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(127,216,232,.9), transparent);
  box-shadow: 0 0 14px rgba(127,216,232,.8); pointer-events: none;
  animation: tmscan 8s cubic-bezier(.45,.05,.55,.95) infinite alternate; }
@keyframes tmscan { 0% { top: 90%; } 100% { top: 4%; } }
@media (prefers-reduced-motion: reduce) { .team-mosaic .tm-scan { animation: none; top: 45%; } }
.team-mosaic .tm-cap { position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.88); background: rgba(9,14,24,.74); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 14px; backdrop-filter: blur(6px); }

/* ----- About: compact team credits (roster without repeated portraits) ----- */
.team-credits { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.team-credits .tc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.team-credits .tc-name { font-weight: 800; font-size: 15px; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.team-credits .tc-role { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #A9B3C2; text-align: right; }
@media (max-width: 720px) { .team-credits { grid-template-columns: 1fr; } }

/* ----- About: generated brand assets ----- */
.team-photo-wrap { grid-template-rows: 1fr; grid-template-columns: 1fr; }
.team-photo-wrap img { object-position: center 30%; }
.service-card .vc-img { margin: -4px -4px 18px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.07); aspect-ratio: 4 / 3; }
.service-card .vc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
