/* ─────────────────────────────────────────────────────────
   TESTA — Page: Index
   ───────────────────────────────────────────────────────── */

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--paper);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__scroll-hint {
  margin-top: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--ink-4);
  border-radius: 1px;
}

/* Floating metric cards */
.hero__metrics {
  position: absolute;
  right: 0;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}
.metric-card {
  background: rgba(255,255,255,0.88);
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 22px;
  backdrop-filter: blur(16px);
  min-width: 180px;
  box-shadow: var(--shadow-md);
}
.metric-card__num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1;
}
.metric-card__label {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 5px;
}

/* Word underline decoration */
.hero__underline {
  display: inline-block;
  position: relative;
}
.hero__underline::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0; right: 0;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  opacity: 0.5;
}

/* ═══════════════════════════════
   SERVICIOS
   ═══════════════════════════════ */
#servicios {
  background: var(--white);
}

.sgsi-wrapper {
  border: 0.5px solid var(--border-mid);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sgsi-top {
  padding: 40px 44px;
  background: linear-gradient(130deg, var(--blue-wash) 0%, var(--white) 55%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: flex-start;
  border-bottom: 0.5px solid var(--border);
}
.sgsi-iso-badge {
  background: var(--white);
  border: 0.5px solid var(--blue-mid);
  border-radius: var(--r-md);
  padding: 16px 20px;
  text-align: center;
  flex-shrink: 0;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
}
.sgsi-iso-badge .iso-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--blue-deep);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sgsi-iso-badge .iso-code {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--blue-deep);
  letter-spacing: -1px;
  line-height: 1.1;
}
.sgsi-iso-badge .iso-label {
  font-size: 10px;
  color: var(--blue-deep);
  opacity: 0.6;
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sgsi-phases {
  border-top: 0.5px solid var(--border);
}

.phase-accordion {
  padding: 0 44px;
}

/* PDS Card */
.pds-wrapper {
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}
.pds-left {
  padding: 40px 44px;
  border-right: 0.5px solid var(--border);
}
.pds-right {
  padding: 40px 44px;
}
.pds-list {
  list-style: none;
  margin-top: 4px;
}
.pds-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
  color: var(--ink-2);
  align-items: flex-start;
  line-height: 1.5;
}
.pds-list li:last-child { border-bottom: none; }
.pds-list li::before {
  content: '–';
  color: var(--ink-4);
  flex-shrink: 0;
}

/* ═══════════════════════════════
   PROCESO / MÉTODO
   ═══════════════════════════════ */
#proceso {
  background: var(--paper);
}
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.proceso-item {
  background: var(--white);
  padding: 32px 28px;
  transition: background 0.2s;
}
.proceso-item:hover { background: var(--paper); }
.proceso-item .num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--paper-3);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.proceso-item h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
}
.proceso-item p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ═══════════════════════════════
   DEMO CARDS
   ═══════════════════════════════ */
#demo {
  background: var(--white);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.demo-card {
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}
.demo-card__titlebar {
  background: var(--paper-2);
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-card__titlebar-dots { display: flex; gap: 5px; }
.demo-card__titlebar-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper-3);
}
.demo-card__titlebar-dots span:nth-child(1) { background: #f87171; }
.demo-card__titlebar-dots span:nth-child(2) { background: #fbbf24; }
.demo-card__titlebar-dots span:nth-child(3) { background: #4ade80; }
.demo-card__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 6px;
  flex: 1;
}
.demo-card__meta {
  font-size: 11px;
  color: var(--ink-4);
}
.demo-card__body { padding: 20px; }

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
}
.demo-row:last-child { border-bottom: none; }
.demo-row .name { color: var(--ink-2); }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
  color: var(--ink-2);
}
.check-row:last-child { border-bottom: none; }
.check-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 1px;
}
.check-box.done { background: #e6f7ec; color: #2d7a4a; }
.check-box.open { border: 1.5px solid var(--border-heavy); }

.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--border);
}
.doc-row:last-child { border-bottom: none; }
.doc-icon {
  width: 34px; height: 34px;
  background: var(--blue-wash);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.doc-info .doc-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.doc-info .doc-meta { font-size: 11px; color: var(--ink-4); margin-top: 1px; }

.timeline-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
}
.timeline-row:last-child { border-bottom: none; }
.tl-week {
  min-width: 54px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 2px;
}
.tl-task { font-weight: 500; color: var(--ink); font-size: 13px; }
.tl-desc { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.tl-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
}

/* Progress ring in demo */
.progress-summary {
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-top: 14px;
}
.progress-summary-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.progress-summary-bar {
  height: 6px;
  background: var(--paper-3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-summary-bar-fill {
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-deep));
  border-radius: 3px;
}
.progress-summary-text {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
}

/* ═══════════════════════════════
   PROBLEMA
   ═══════════════════════════════ */
#problema {
  background: var(--paper);
}
.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.problema-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
}
.problema-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.problema-card .icon-wrap {
  width: 40px; height: 40px;
  background: var(--coral-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.problema-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.problema-card p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ═══════════════════════════════
   PARA QUIÉN
   ═══════════════════════════════ */
#para-quien {
  background: var(--white);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.audience-card {
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.25s var(--ease);
  background: var(--white);
}
.audience-card:hover {
  border-color: var(--coral-mid);
  box-shadow: var(--shadow-md);
}
.audience-icon {
  width: 46px; height: 46px;
  background: var(--blue-wash);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.audience-card h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}
.audience-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ═══════════════════════════════
   SOBRE MÍ
   ═══════════════════════════════ */
#sobre-mi {
  background: var(--paper-2);
}
.sobre-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.sobre-avatar-wrap {
  position: sticky;
  top: 96px;
}
.sobre-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 20px;
}
.sobre-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.sobre-role {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sobre-right p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 22px;
}

/* ═══════════════════════════════
   CTA FINAL
   ═══════════════════════════════ */
#cta-final {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-orb-1 {
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(224,92,46,0.06);
  border-radius: 50%;
  filter: blur(80px);
  top: -200px; right: -100px;
  pointer-events: none;
}
.cta-orb-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(196,218,242,0.05);
  border-radius: 50%;
  filter: blur(60px);
  bottom: -100px; left: 10%;
  pointer-events: none;
}
#cta-final .container { position: relative; z-index: 1; }
#cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 20px;
}
#cta-final h2 em {
  font-style: italic;
  color: rgba(255,255,255,0.4);
}
#cta-final p {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 440px;
  line-height: 1.7;
  margin: 0 auto 44px;
}
.cta-subtext {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.cta-subtext a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.2);
  transition: color 0.2s;
}
.cta-subtext a:hover { color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 1024px) {
  .sgsi-top { grid-template-columns: 1fr; }
  .sgsi-iso-badge { display: none; }
  .sobre-layout { grid-template-columns: 1fr; gap: 40px; }
  .sobre-avatar-wrap { position: static; }
  .proceso-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero__metrics { display: none; }
  .pds-wrapper { grid-template-columns: 1fr; }
  .pds-left { border-right: none; border-bottom: 0.5px solid var(--border); }
  .demo-grid { grid-template-columns: 1fr; }
  .problema-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .proceso-grid { grid-template-columns: 1fr; }
  .sgsi-top { padding: 28px 24px; }
  .phase-accordion { padding: 0 24px; }
  .pds-left, .pds-right { padding: 28px 24px; }
}
