/* ═══════════════════════════════════════════════
   CONECTANDO — Digital  |  styles.css
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;700;800&display=swap');

/* ── Tokens ── */
:root {
  --black:     #000000;
  --white:     #ffffff;
  --yellow:    #FFED00;
  --pink:      #E6007E;
  --blue:      #009FE3;
  --gray-bg:   #0d0d0d;
  --gray-card: #111111;
  --gray-text: #666666;
  --dim:       rgba(255,255,255,0.45);
  --text-soft: rgba(255,255,255,0.75); 
  --border:    rgba(255,255,255,0.10);
  --mono:      'Space Mono', monospace;
  --disp:      'Syne', sans-serif;
  
  --max:       1400px; 
  --pad:       clamp(40px, 8vw, 120px); 
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--disp);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════════
   PANTALLA DE CARGA
   ════════════════════════════════════════════════ */
#loader { position: fixed; inset: 0; background: #050505; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.loader-inner { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 300px; }
.loader-squares { display: flex; gap: 8px; justify-content: space-between; }
.sq { width: 14px; height: 14px; background: rgba(255, 255, 255, 0.15); transition: background 0.2s ease; }
.loader-text { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }

/* ════════════════════════════════════════════════
   BARRA LATERAL Y HEADER
   ════════════════════════════════════════════════ */
#side-bar { position: fixed; right: 0; top: 0; width: 6px; height: 100vh; background: var(--pink); z-index: 300; }
#site-header { position: fixed; top: 0; left: 0; right: 6px; z-index: 200; display: flex; justify-content: space-between; align-items: flex-start; padding: 32px var(--pad) 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%); }
.header-left { display: flex; flex-direction: column; gap: 1.5em; pointer-events: all; }
.header-brand { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--white); text-transform: uppercase; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: all; }
.header-section-label { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; }
.header-dots { display: flex; gap: 12px; }
.header-dots span { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.04em; cursor: pointer; transition: all 0.2s; padding: 2px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.3); }
.header-dots span.active, .header-dots span:hover { color: var(--white); text-decoration-color: var(--yellow); }

/* ════════════════════════════════════════════════
   UTILIDADES BÁSICAS
   ════════════════════════════════════════════════ */
.section-pad { padding: 120px var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; width: 100%; }

/* FIX: Clase de utilidad agregada para mitigar el exceso de negro arriba/abajo en CTA Expresiva */
.section-cta-compact { padding-top: 50px !important; padding-bottom: 50px !important; }

.section-label { font-family: var(--mono); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin-bottom: 40px; }

.body-text { 
  font-family: var(--disp); 
  font-size: 1.125rem; 
  line-height: 1.8; 
  font-weight: 400; 
  color: var(--text-soft); 
  max-width: 65ch; 
  margin-bottom: 24px;
}

/* Decodificación */
.decode-char { display: inline-block; opacity: 1; }
.g-shp { height: 0.75em; width: auto; display: inline-block; vertical-align: middle; margin: 0 0.02em; }
.c-celeste { color: var(--blue); }
.c-rosa    { color: var(--pink); }
.c-amarillo{ color: var(--yellow); }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible      { opacity:1; transform:translateY(0); }
.reveal-d1           { transition-delay: 0.15s; }
.reveal-d2           { transition-delay: 0.30s; }
.reveal-d3           { transition-delay: 0.45s; }
.reveal-d4           { transition-delay: 0.60s; }

/* ════════════════════════════════════════════════
   01 — HERO
   ════════════════════════════════════════════════ */
.section-hero { min-height: 100vh; padding: 120px var(--pad) 0; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; display: flex; flex-direction: column; justify-content: center;}
.hero-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 80px; flex: 1; }
.hero-text-block { display: flex; flex-direction: column; }
.hero-title { font-family: var(--disp); font-size: clamp(70px, 12vw, 160px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.85; color: var(--white); cursor: default; }
.title-outline { -webkit-text-stroke: 2px var(--white); color: transparent; transition: color 0.4s ease; }
.hero-title:hover .title-outline { color: var(--yellow); -webkit-text-stroke: 0px transparent; }
.hero-subtitle { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--dim); line-height: 1.8; border-left: 2px solid var(--yellow); padding-left: 20px; margin-top: 40px; }
.hero-subtitle p { margin: 0; }
.hero-pieces-wrapper { position: relative; width: 300px; height: 300px; justify-self: center; cursor: pointer; }
.pc { width:46px; height:46px; position: absolute; will-change: transform; }
.pc--y { background: var(--yellow); }
.pc--p { background: var(--pink);   }
.pc--b { background: var(--blue);   }
.hero-tagline { display: flex; align-items: center; gap: 20px; font-family: var(--disp); font-size: 1.125rem; line-height: 1.8; color: var(--text-soft); padding: 40px 0 60px; max-width: 600px; }
.tagline-bar { display: block; width: 5px; height: 50px; background: var(--yellow); flex-shrink: 0; }

/* ════════════════════════════════════════════════
   02 — FUNDAMENTO / ARQUITECTURA
   ════════════════════════════════════════════════ */
.fundamento-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; position: relative; }
.fundamento-sticky { position: sticky; top: 150px; }
.fundamento-verbs { margin-top: 40px; } 
.verb-line { display: block; font-family: var(--disp); font-size: clamp(48px, 6vw, 90px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; min-height: 1.2em; }
.verb-white { color: var(--white); }
.verb-dark  { color: var(--gray-text); }
.quote-block { border-left: 4px solid var(--pink); padding: 8px 0 8px 24px; margin-bottom: 32px; }
.quote-block p { font-family: var(--disp); font-size: 1.3rem; font-weight: 700; line-height: 1.6; color: var(--white); margin:0;}

@media (max-width: 900px) {
  .fundamento-layout { grid-template-columns: 1fr; gap: 40px; }
  .fundamento-sticky { position: relative; top: 0; }
  .hero-inner { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   03 — CONCEPTOS
   ════════════════════════════════════════════════ */
.concepts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.concepts-col { display:flex; flex-direction:column; gap:24px; } 
.concept-card { border: 1px solid var(--border); border-left-width: 3px; padding: 32px 24px; background: transparent; transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease; cursor: default; }
.card-celeste { border-left-color: var(--blue); }
.card-rosa    { border-left-color: var(--pink); }
.card-amarillo{ border-left-color: var(--yellow); }
.card-celeste:hover { border-color: var(--blue); background: rgba(0, 159, 227, 0.04); transform: translateY(-4px); }
.card-rosa:hover    { border-color: var(--pink); background: rgba(230, 0, 126, 0.04); transform: translateY(-4px); }
.card-amarillo:hover{ border-color: var(--yellow); background: rgba(255, 237, 0, 0.04); transform: translateY(-4px); }
.card-num { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: 0.15em; margin-bottom: 16px; }
.card-title { font-family: var(--disp); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.card-body { font-family: var(--disp); font-size: 1rem; color: var(--text-soft); line-height: 1.6; }

@media (max-width: 900px) { .concepts-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════
   04 — GALERÍA (BENTO GRID)
   ════════════════════════════════════════════════ */
.bento-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; width: 100%; }
.bento-item { width: 100%; height: 100%; position: relative; overflow: hidden; background: var(--gray-card); }
.bento-main { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }
.gal-img { width: 100%; height: 100%; position: relative; display: block; }
.gal-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gal-img:hover .gal-photo { transform: scale(1.05); }
.gal-overlay { position: absolute; inset: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none; }
.bento-main .gal-overlay { padding: 40px; }
.gal-img:hover .gal-overlay { opacity: 1; transform: translateY(0); }
.gal-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.gal-sub { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0.12em; }

@media (max-width: 900px) { .bento-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } .bento-main, .bento-wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento-gallery { grid-template-columns: 1fr; } .bento-main, .bento-wide { grid-column: span 1; } }

/* ════════════════════════════════════════════════
   05 — PARTITURA DE INTERACCIÓN
   ════════════════════════════════════════════════ */
.partitura-wrapper { width: 100%; background: var(--gray-card); border: 1px dashed var(--border); padding: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.4s ease; overflow: hidden; }
.partitura-wrapper:hover { transform: scale(1.01); }
.partitura-iframe { width: 100%; height: 750px; border: none; background: var(--black); }

/* ════════════════════════════════════════════════
   📌 NUEVA UTILIDAD: SECCIÓN VIDEOS (MARCOS PEQUEÑOS EN FILA)
   ════════════════════════════════════════════════ */
.videos-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.video-item-frame {
  background: var(--gray-card);
  border: 3px solid var(--border);
  padding: 10px;
  border-radius: 4px;
  width: 50%;
  max-width: 440px; /* Tamaño pequeño requerido en marco[cite: 13] */
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease;
}

.video-item-frame:hover {
  border-color: var(--pink);
}

.video-item-frame video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 800px) {
  .videos-container { flex-direction: column; gap: 24px; }
  .video-item-frame { width: 100%; max-width: 100%; }
}

/* ════════════════════════════════════════════════
   06 — INTERFAZ EXPRESIVA
   ════════════════════════════════════════════════ */
.section-interfaz-expresiva { display: flex; flex-direction: column; align-items: flex-start; }
.cta-inner { border-top: none; padding: 40px 0; width: 100%; display: flex; justify-content: center; }
.cta-btn { display: inline-flex; align-items: center; gap: 32px; background: var(--pink); color: var(--white); text-decoration: none; padding: 0 64px; height: 96px; position: relative; overflow: hidden; transition: background 0.3s; outline: 3px solid var(--yellow); outline-offset: 6px; }
.cta-btn::before { content: ''; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 0; }
.cta-btn:hover::before { transform: scaleX(1); }
.cta-btn:hover .cta-text, .cta-btn:hover .cta-arrow { color: var(--black); }
.cta-text { font-family: var(--disp); font-size: clamp(20px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: var(--white); position: relative; z-index: 1; transition: color 0.3s; }
.cta-arrow { font-size: 32px; color: var(--white); position: relative; z-index: 1; transition: color 0.3s, transform 0.3s; }
.cta-btn:hover .cta-arrow { transform: translateX(8px); }

/* ════════════════════════════════════════════════
   07 — REFERENCIAS
   ════════════════════════════════════════════════ */
.section-referencias { padding-top: 60px; padding-bottom: 80px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); display: block; }
.refs-container { display: flex; flex-direction: row; gap: 80px; justify-content: center; align-items: center; flex-wrap: nowrap; width: 100%; margin-top: 20px; }
.ref-item { display: flex; align-items: center; gap: 24px; width: 50%; max-width: 500px; }
.ref-qr-wrapper { background-color: var(--white); padding: 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease; cursor: pointer; }
.ref-qr-wrapper:hover { transform: translateY(-8px) scale(1.05); box-shadow: 0 15px 30px rgba(255, 237, 0, 0.25); }
.ref-qr { width: 100px; height: 100px; object-fit: contain; }
.ref-text { display: flex; flex-direction: column; gap: 8px; }
.ref-title { font-family: var(--disp); font-size: 1.2rem; font-weight: 700; color: var(--yellow); }
.ref-text p { font-family: var(--disp); font-size: 0.95rem; color: var(--text-soft); line-height: 1.5; margin: 0; }

@media (max-width: 900px) { .refs-container { flex-direction: column; gap: 40px; align-items: center; flex-wrap: wrap; } .ref-item { width: 100%; max-width: 100%; } }

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
#site-footer { padding: 80px var(--pad); border-top: none; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.footer-logos { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.footer-logo { height: 60px; width: auto; object-fit: contain; }
.footer-text-block { display: flex; flex-direction: column; gap: 12px; text-align: left; max-width: 800px; }
.footer-text-block p { font-family: var(--disp); font-size: 1rem; color: var(--text-soft); line-height: 1.6; margin: 0; }