/* =========================================================
   STS — Soporte Técnico Salud
   Stylesheet principal
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --navy: #1E3F66;
  --navy-deep: #142E4A;
  --azure: #5079A8;
  --sky: #4A9CCB;
  --slate: #4B5563;
  --slate-soft: #6B7280;
  --gray-line: #E5E7EB;
  --gray-bg: #F4F6F9;
  --gray-soft: #F9FAFB;
  --paper: #FBFBF8;
  --ink: #0F1B2D;
  --accent: #B89968;

  --serif: 'Cormorant Garamond', 'Crimson Text', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --container: 1240px;
  --container-narrow: 980px;
  --radius: 2px;
  --shadow-soft: 0 4px 24px rgba(15, 27, 45, 0.06);
  --shadow-strong: 0 12px 40px rgba(15, 27, 45, 0.12);
  --transition: 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
.font-serif { font-family: var(--serif); }
.font-sans { font-family: var(--sans); }
.font-mono { font-family: var(--mono); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; color: var(--navy-deep); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azure);
  font-weight: 500;
}

.display-1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 400; letter-spacing: -0.02em; }
.display-1 em { font-style: italic; color: var(--azure); font-weight: 400; }
.display-2 { font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 400; }
.display-3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; }
.h-section {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--slate);
  font-weight: 300;
}

p { color: var(--slate); }

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--navy-deep); letter-spacing: 0.01em; }
.brand-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-soft); margin-top: 2px; }

.nav-list { display: flex; gap: 36px; align-items: center; }
.nav-list a {
  font-size: 14px;
  color: var(--slate);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-list a:hover { color: var(--navy-deep); }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--navy-deep); }

.nav-cta {
  background: var(--navy);
  color: var(--paper) !important;
  padding: 11px 22px !important;
  border-radius: var(--radius);
  font-size: 13px !important;
  transition: background var(--transition);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy-deep); color: var(--paper) !important; }

.nav-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy-deep); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--navy-deep); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 980px) {
  .nav-list { display: none; }
  .nav-toggle { display: flex; }
  .nav-list.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 24px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-line);
    box-shadow: var(--shadow-soft);
  }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.section-tight { padding: 64px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 20px; }
.section-head .lead { color: var(--slate); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 140px;
  background: linear-gradient(180deg, var(--paper) 0%, #F4F6F9 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74, 156, 203, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30, 63, 102, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.hero-eyebrow { margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--azure);
}
.hero h1 { margin-bottom: 32px; }
.hero h1 em { font-style: italic; color: var(--azure); }
.hero-lead { margin-bottom: 44px; max-width: 580px; }

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-frame {
  width: 100%;
  height: 100%;
  position: relative;
  border: 1px solid var(--gray-line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.hero-visual-frame::before, .hero-visual-frame::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--navy);
  border-style: solid;
}
.hero-visual-frame::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; transform: translate(-12px, -12px); border-color: var(--navy); width: 32px; height: 32px; border-width: 1px 0 0 1px; }
.hero-visual-frame::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; transform: translate(12px, 12px); width: 32px; height: 32px; }
.hero-visual-logo { width: 65%; height: auto; }

.hero-stats {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--paper);
  padding: 20px 28px;
  display: flex;
  gap: 32px;
  white-space: nowrap;
  box-shadow: var(--shadow-strong);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.hero-stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-strong); }
.btn-ghost { color: var(--navy-deep); border: 1px solid var(--gray-line); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); background: var(--paper); }
.btn-link {
  color: var(--navy);
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.btn-link::after {
  content: '→';
  transition: transform var(--transition);
}
.btn-link:hover::after { transform: translateX(4px); }

/* ---------- Pillars (Home propuesta de valor) ---------- */
.pillars {
  background: var(--paper);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--gray-line);
}
@media (max-width: 880px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar {
  background: var(--paper);
  padding: 48px 40px;
  position: relative;
  transition: background var(--transition);
}
.pillar:hover { background: var(--gray-soft); }
.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--slate-soft);
  margin-bottom: 24px;
  display: block;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 16px;
  line-height: 1.25;
}
.pillar-title em { font-style: italic; color: var(--azure); }
.pillar-text { font-size: 0.95rem; color: var(--slate); line-height: 1.65; }

/* ---------- Servicios overview (Home) ---------- */
.services-overview {
  background: var(--gray-bg);
}
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-line);
  border: 1px solid var(--gray-line);
}
@media (max-width: 768px) { .services-list { grid-template-columns: 1fr; } }
.service-card {
  background: var(--paper);
  padding: 36px 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  background: var(--navy);
  color: var(--paper);
}
.service-card:hover .service-num,
.service-card:hover .service-title,
.service-card:hover .service-text { color: var(--paper); }
.service-card:hover .service-num { color: rgba(255,255,255,0.5); }
.service-card:hover .service-arrow { transform: translateX(4px); color: var(--paper); }

.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--slate-soft);
  transition: color var(--transition);
}
.service-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.25;
  transition: color var(--transition);
}
.service-text {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.6;
  transition: color var(--transition);
  flex-grow: 1;
}
.service-arrow {
  font-family: var(--serif);
  color: var(--azure);
  font-size: 1.2rem;
  margin-top: 8px;
  transition: all var(--transition);
}

/* ---------- Quote / Cita institucional ---------- */
.quote-section {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(74, 156, 203, 0.08) 100%);
  pointer-events: none;
}
.quote-content { position: relative; max-width: 880px; }
.quote-mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
  color: var(--sky);
  opacity: 0.4;
  margin-bottom: -20px;
  display: block;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: 36px;
  font-style: italic;
}
.quote-text em { color: var(--sky); font-style: italic; }
.quote-attribution {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--paper);
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--gray-line);
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 20px; }
.cta-banner h2 em { font-style: italic; color: var(--azure); }
.cta-banner .lead { margin-bottom: 36px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-tag { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 20px; max-width: 320px; font-size: 0.92rem; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--paper); }

.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 0.92rem; line-height: 1.5; }
.footer-contact-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 2px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Page Header (otras páginas) ---------- */
.page-header {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--gray-bg) 100%);
  border-bottom: 1px solid var(--gray-line);
}
.page-header .eyebrow { display: block; margin-bottom: 18px; }
.page-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 400; margin-bottom: 24px; max-width: 800px; }
.page-header h1 em { font-style: italic; color: var(--azure); }
.page-header .lead { max-width: 720px; }

/* Breadcrumbs */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb-sep { opacity: 0.4; }

/* ---------- Content blocks (páginas internas) ---------- */
.content-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-line);
}
@media (max-width: 880px) { .content-block { grid-template-columns: 1fr; gap: 24px; } }
.content-block-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure);
  font-weight: 500;
  padding-top: 6px;
}
.content-block-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--navy-deep);
  line-height: 1.25;
}
.content-block-body p { margin-bottom: 18px; line-height: 1.75; font-size: 1rem; }
.content-block-body p:last-child { margin-bottom: 0; }
.content-block-body ul { margin: 20px 0; }
.content-block-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--slate);
  line-height: 1.65;
}
.content-block-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 12px; height: 1px;
  background: var(--azure);
}

/* ---------- Values grid (Quiénes Somos) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

.value-item {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--gray-line);
  position: relative;
  transition: all var(--transition);
}
.value-item:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.value-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--slate-soft);
  margin-bottom: 14px;
  display: block;
}
.value-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.value-desc {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--paper);
  border: 1px solid var(--gray-line);
  padding: 40px 36px;
  position: relative;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-soft); border-color: var(--azure); }
.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
  font-weight: 500;
}
.team-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.team-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 24px;
}
.team-bio { font-size: 0.95rem; color: var(--slate); line-height: 1.7; margin-bottom: 18px; }
.team-bio strong { color: var(--navy-deep); font-weight: 500; }

/* ---------- Servicios (página) ---------- */
.module-card {
  background: var(--paper);
  border: 1px solid var(--gray-line);
  padding: 44px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 36px;
  transition: all var(--transition);
}
@media (max-width: 768px) {
  .module-card { grid-template-columns: 1fr; padding: 32px 28px; gap: 16px; }
}
.module-card:hover { border-color: var(--azure); box-shadow: var(--shadow-soft); }
.module-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--azure);
  line-height: 1;
  font-style: italic;
}
.module-body h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--navy-deep);
}
.module-summary {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 20px;
  font-style: italic;
}
.module-features { margin-top: 20px; }
.module-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--slate);
  line-height: 1.6;
  font-size: 0.95rem;
}
.module-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--azure);
}
.module-features li strong { color: var(--navy-deep); font-weight: 500; }

/* ---------- Discapacidad / Mecanismo Integración (bloque destacado) ---------- */
.spotlight {
  background: var(--navy);
  color: var(--paper);
  padding: 80px 0;
  margin: 64px 0;
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74, 156, 203, 0.15), transparent 70%);
  border-radius: 50%;
}
.spotlight-inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.spotlight .eyebrow { color: var(--sky); }
.spotlight h2 { color: var(--paper); margin: 18px 0 24px; }
.spotlight h2 em { color: var(--sky); font-style: italic; }
.spotlight p { color: rgba(255,255,255,0.78); }
.spotlight .lead { color: rgba(255,255,255,0.85); }

.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
@media (max-width: 880px) { .phases-grid { grid-template-columns: 1fr; } }
.phase-item { padding: 32px 28px; border: 1px solid rgba(255,255,255,0.15); transition: all var(--transition); }
.phase-item:hover { border-color: var(--sky); background: rgba(74, 156, 203, 0.05); }
.phase-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--sky);
  margin-bottom: 12px;
  display: block;
}
.phase-name { font-family: var(--serif); font-size: 1.25rem; color: var(--paper); margin-bottom: 14px; font-weight: 500; }
.phase-desc { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.65; }

/* ---------- Methodology table ---------- */
.method-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.method-table th, .method-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--gray-line); }
.method-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  font-weight: 500;
  background: var(--gray-soft);
  border-bottom: 1px solid var(--navy);
}
.method-table .phase-cell {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--azure);
  font-style: italic;
  width: 80px;
}
.method-table .name-cell { font-weight: 500; color: var(--navy-deep); width: 240px; }
.method-table .desc-cell { color: var(--slate); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 768px) {
  .method-table thead { display: none; }
  .method-table tbody tr { display: block; padding: 20px; border-bottom: 1px solid var(--gray-line); }
  .method-table tbody td { display: block; padding: 4px 0; border: none; }
}

/* ---------- Marco Normativo ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 768px) { .legal-grid { grid-template-columns: 1fr; } }
.legal-card { padding: 32px; background: var(--paper); border: 1px solid var(--gray-line); }
.legal-card h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 20px;
  font-weight: 500;
}
.legal-card ul { margin: 0; }
.legal-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-line);
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.5;
}
.legal-card li:last-child { border-bottom: none; }
.legal-card li strong { color: var(--navy-deep); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-block h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 12px;
  font-weight: 500;
}
.contact-block p, .contact-block a { font-size: 1.05rem; color: var(--navy-deep); line-height: 1.6; }
.contact-block a:hover { color: var(--azure); }

.contact-form { background: var(--gray-soft); padding: 48px 40px; border: 1px solid var(--gray-line); }
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row.row-2 { grid-template-columns: 1fr; } }
.form-disclaimer { font-size: 0.82rem; color: var(--slate-soft); margin-top: 12px; line-height: 1.55; }
.form-submit { margin-top: 8px; width: 100%; justify-content: center; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.divider {
  height: 1px;
  background: var(--gray-line);
  margin: 64px 0;
}
.divider-dotted {
  border: 0;
  border-top: 1px dashed var(--gray-line);
  margin: 48px 0;
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-banner { display: none; }
  section { padding: 32px 0; page-break-inside: avoid; }
}
