/* Matter Metrix — Minimal, legible, premium (FULL CSS FIXED) */

/* =========================
   0) Variables base
========================= */
:root{
  --bg:#070708;
 --headerH: 72px;

  /* Texto */
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  /* Cobre (legible) */
  --copper: rgba(245,232,212,.92);
  --copperSoft: rgba(245,232,212,.72);

  /* Bordes / glass */
  --stroke: rgba(255,255,255,.14);
  --glass: rgba(255,255,255,.04);
  --glass2: rgba(255,255,255,.06);

  /* Botón premium */
  --goldBtnBg: rgba(205,186,140,.22);
  --goldBtnBd: rgba(205,186,140,.52);
  --goldBtnBgHover: rgba(205,186,140,.28);
  --goldBtnBdHover: rgba(205,186,140,.78);

  /* Layout */
  --radius: 18px;
  --container: 1120px;
  --padX: 24px;

  /* Tipos */
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --font-serif: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;

  /* Escalas de títulos */
  --h1: clamp(34px, 4.2vw, 58px);
  --h2: clamp(30px, 3.2vw, 46px);
  --h3: clamp(18px, 2.0vw, 24px);

  /* Altura header (para anchors cuando está sticky) */
  --headerH: 72px;
}

/* =========================
   1) Reset + anti overflow
========================= */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

html{
  overflow-x: clip;
  scroll-behavior: smooth;
}

body{
  margin:0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

/* Medios no desbordan */
img, svg, video, canvas{
  max-width: 100%;
  height: auto;
  display: block;
}

a{ color: inherit; }

/* =========================
   2) Fondo global (SIN IMÁGENES)
   - Look cobre/estelar
   - Constelación fija (sin jitter)
========================= */
.site-bg{
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1000px 640px at 50% 18%,
      rgba(210,170,120,0.28),
      rgba(0,0,0,0.00) 62%),
    radial-gradient(920px 620px at 50% 22%,
      rgba(255,235,205,0.10),
      rgba(0,0,0,0.00) 65%),

    radial-gradient(760px 520px at 18% 55%,
      rgba(210,170,120,0.10),
      rgba(0,0,0,0.00) 62%),
    radial-gradient(820px 520px at 82% 55%,
      rgba(210,170,120,0.08),
      rgba(0,0,0,0.00) 64%),

    radial-gradient(1200px 900px at 50% 50%,
      rgba(0,0,0,0.20),
      rgba(0,0,0,0.92) 78%),

    linear-gradient(to bottom,
      rgba(0,0,0,0.12),
      rgba(0,0,0,0.86)),
    #070708;
}

/* Starfield denso + polvo */
.site-bg::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: 0.55;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,245,230,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 62%, rgba(255,245,230,.40) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 28%, rgba(255,245,230,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 18%, rgba(255,245,230,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 44%, rgba(255,245,230,.35) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 26%, rgba(255,245,230,.42) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 66%, rgba(255,245,230,.35) 0 1px, transparent 2px),

    radial-gradient(circle at 18% 36%, rgba(255,255,255,.22) 0 .7px, transparent 1.6px),
    radial-gradient(circle at 44% 52%, rgba(255,255,255,.18) 0 .7px, transparent 1.6px),
    radial-gradient(circle at 72% 58%, rgba(255,255,255,.18) 0 .7px, transparent 1.6px),
    radial-gradient(circle at 62% 34%, rgba(255,255,255,.16) 0 .7px, transparent 1.6px);
  background-size:
    180px 180px,
    220px 220px,
    200px 200px,
    170px 170px,
    240px 240px,
    210px 210px,
    260px 260px,
    140px 140px,
    160px 160px,
    150px 150px,
    170px 170px;
  filter: blur(.15px);
}

/* Constelación / grilla (fija y estable) */
.site-bg::after{
  content:"";
  position:absolute; /* NO fixed: el padre ya es fixed */
  inset:0;
  pointer-events:none;
  opacity:.55;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700'%3E%3Cg stroke='rgba(205,186,140,0.22)' stroke-width='1'%3E%3Cline x1='70' y1='90' x2='260' y2='220'/%3E%3Cline x1='260' y1='220' x2='480' y2='120'/%3E%3Cline x1='480' y1='120' x2='720' y2='260'/%3E%3Cline x1='720' y1='260' x2='980' y2='160'/%3E%3Cline x1='150' y1='520' x2='390' y2='360'/%3E%3Cline x1='390' y1='360' x2='660' y2='480'/%3E%3Cline x1='660' y1='480' x2='930' y2='420'/%3E%3Cline x1='980' y1='160' x2='930' y2='420'/%3E%3Cline x1='480' y1='120' x2='390' y2='360'/%3E%3Cline x1='720' y1='260' x2='660' y2='480'/%3E%3C/g%3E%3Cg fill='rgba(205,186,140,0.45)'%3E%3Ccircle cx='70' cy='90' r='3'/%3E%3Ccircle cx='260' cy='220' r='3'/%3E%3Ccircle cx='480' cy='120' r='3'/%3E%3Ccircle cx='720' cy='260' r='3'/%3E%3Ccircle cx='980' cy='160' r='3'/%3E%3Ccircle cx='150' cy='520' r='3'/%3E%3Ccircle cx='390' cy='360' r='3'/%3E%3Ccircle cx='660' cy='480' r='3'/%3E%3Ccircle cx='930' cy='420' r='3'/%3E%3C/g%3E%3C/svg%3E");

  background-repeat: repeat;
  background-size: 1200px 700px;

  /* CLAVE: no “center” => no se mueve */
  background-position: 0 0;
}

/* Viñeta suave */
.vignette{
  position: fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background: radial-gradient(circle at center,
    rgba(0,0,0,0.00) 42%,
    rgba(0,0,0,.78) 92%);
}

/* =========================
   3) Container + secciones
========================= */
.container{
  width: min(var(--container), calc(100% - (var(--padX) * 2)));
  margin: 0 auto;
}

section{
  padding: clamp(56px, 6vw, 90px) 0;
}

/* Anchors: cuando header es sticky, que no tape títulos */
section[id]{
  scroll-margin-top: calc(var(--headerH) + 16px);
}

/* =========================
   4) Header
   - Desktop/tablet: sticky
   - Mobile: NO fijo
========================= */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10,10,11,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
  
}

/* Desktop / laptop: SIEMPRE fijo */
@media (min-width: 681px){
  header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  /* Empuja el contenido para que no quede bajo el header */
  main{
    padding-top: var(--headerH);
  }

  /* Para anchors (#servicios etc.) */
  section[id]{
    scroll-margin-top: calc(var(--headerH) + 16px);
  }
}

/* Mobile: NO fijo */
@media (max-width: 680px){
  header{
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    backdrop-filter: none;
  }

  main{
    padding-top: 0;
  }

  section[id]{
    scroll-margin-top: 0;
  }
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
  min-height: 56px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--ink);
  min-width: 160px;
}

.brand-mark{
  width: 26px;
  height: 26px;
  opacity:.95;
}

.brand-name{
  letter-spacing:.18em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
}

/* Links */
.nav-links{
  display:flex;
  gap: 18px;
  align-items:center;
}

.nav-links a{
  color: rgba(255,255,255,.78);
  text-decoration:none;
  font-size: 13px;
  white-space: nowrap;
}
.nav-links a:hover{ color: rgba(255,255,255,.92); }

.nav-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Idioma */
.lang-switch{
  display:inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.lang-switch a{
  font-size: 12px;
  text-decoration:none;
  color: rgba(255,255,255,.75);
  padding: 6px 10px;
  border-radius: 10px;
}
.lang-switch a.active{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.lang-switch a:hover{ color: rgba(255,255,255,.92); }

/* Mobile: header NO fijo */
@media (max-width: 680px){
  header{
    position: relative;   /* <- no sticky */
    top: auto;
    backdrop-filter: none;
  }
  :root{
    --headerH: 0px;       /* anchors no necesitan offset */
  }

  /* Ocultamos links en móvil por ahora */
  .nav-links{
    display:none;
  }
  .brand{ min-width: auto; }
}

/* =========================
   5) Botones
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-size: 13px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: var(--glass2);
  border-color: rgba(255,255,255,.20);
}

.btn-gold{
  background: var(--goldBtnBg);
  border-color: var(--goldBtnBd);
}
.btn-gold:hover{
  background: var(--goldBtnBgHover);
  border-color: var(--goldBtnBdHover);
}

.btn svg{ width: 16px; height: 16px; opacity:.9; }

/* =========================
   6) Hero
========================= */
.hero{
  padding: clamp(72px, 8vw, 96px) 0 clamp(44px, 5vw, 64px);
}

.hero h1{
  margin:0;
  text-align:center;
  letter-spacing: .28em;
  font-weight: 600;
  font-size: var(--h1);
  text-transform: uppercase;
  text-shadow: 0 18px 45px rgba(0,0,0,.60);
}

.hero .kicker{
  margin: 18px auto 0;
  text-align:center;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 28px);
  color: rgba(255,255,255,.86);
  text-shadow: 0 18px 45px rgba(0,0,0,.60);
  max-width: 980px;
}

.hero .lead{
  margin: 18px auto 0;
  text-align:center;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.6;
  color: var(--copper);
  text-shadow: 0 18px 45px rgba(0,0,0,.65);
  max-width: 860px;
}

.hero .cta{
  margin-top: 26px;
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
}

/* =========================
   7) Títulos de sección
========================= */
.section-title{
  margin:0;
  text-align:center;
  font-family: var(--font-serif);
  font-size: var(--h2);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 18px 45px rgba(0,0,0,.55);
}

.section-subtitle{
  margin: 12px auto 0;
  text-align:center;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 26px);
  color: var(--copperSoft);
  max-width: 900px;
}

/* =========================
   8) Pills (Sistema)
========================= */
.grid-5{
  margin-top: 34px;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 980px){
  .grid-5{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px){
  .grid-5{ grid-template-columns: 1fr; }
}

.pill{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 120px;
  backdrop-filter: blur(6px);
}

.pill .icon{
  width: 28px;
  height: 28px;
  opacity:.95;
  color: rgba(235,214,180,.92);
}

.pill h3{
  margin: 12px 0 6px;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

.pill p{
  margin:0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================
   9) Cards (Servicios)
========================= */
.cards{
  margin-top: 36px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.card{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(6px);
}

.card-head{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}

.card svg{
  width: 34px;
  height: 34px;
  color: rgba(235,214,180,.92);
  opacity:.95;
}

.card h3{
  margin:0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  color: rgba(255,255,255,.92);
}

.card p{
  margin: 10px 0 0;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

.card ul{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  font-size: 14px;
}

/* =========================
   10) Flow (Metodología)
========================= */
.flow{
  margin-top: 30px;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
}

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

.step{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(6px);
}

.step .num{
  width: 30px;
  height: 30px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background: rgba(235,214,180,.10);
  border: 1px solid rgba(235,214,180,.28);
  color: rgba(235,214,180,.92);
  font-size: 13px;
  font-weight: 600;
}

.step h4{
  margin: 12px 0 6px;
  color: rgba(255,255,255,.90);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.step p{
  margin:0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.6;
}

/* CTA grande */
.big-cta{
  text-align:center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  border-radius: 24px;
  padding: 34px 22px;
  backdrop-filter: blur(6px);
}

.big-cta p{
  max-width: 860px;
  margin: 14px auto 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

/* =========================
   11) Confidence & Transparency
========================= */
.section--confidence{
  position: relative;
}

.confidence-flow{
  margin-top: clamp(20px, 3vw, 34px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: start;
  justify-items: center;
}

.cf-item{
  width: 100%;
  max-width: 190px;
  text-align: center;
}

.cf-icon{
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.10);
  border: 1px solid rgba(235,214,180,0.22);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.icon-svg{
  width: 58px;
  height: 58px;
  fill: none;
  stroke: rgba(235,214,180,0.78);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-svg text{
  fill: rgba(235,214,180,0.92);
  stroke: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
}

.cf-title{
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 14px rgba(0,0,0,0.55);
  margin: 0;
}

.cf-sub{
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.25;
  color: rgba(245,232,212,0.72);
}

.cf-arrow{
  font-size: 20px;
  color: rgba(235,214,180,0.42);
  transform: translateY(44px);
  user-select: none;
}

.cf-divider{
  height: 1px;
  margin: clamp(22px, 3vw, 34px) auto;
  width: min(860px, 100%);
  background: linear-gradient(
    90deg,
    rgba(235,214,180, 0.0),
    rgba(235,214,180, 0.35),
    rgba(235,214,180, 0.0)
  );
}

.cf-claim{
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 28px);
  color: rgba(245,232,212,0.88);
  text-shadow: 0 1px 18px rgba(0,0,0,0.60);
  margin: 0;
  line-height: 1.25;
}

@media (max-width: 980px){
  .confidence-flow{
    grid-template-columns: 1fr auto 1fr auto 1fr;
    row-gap: 24px;
    align-items: start;
  }
  .cf-item{ max-width: 240px; }
}

@media (max-width: 640px){
  .confidence-flow{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cf-arrow{ display:none; }
  .cf-item{ max-width: 420px; }
  .cf-icon{ width: 88px; height: 88px; }
}

/* =========================
   12) Footer
========================= */
.footer{
  padding: 30px 0 44px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer a{ color: rgba(235,214,180,.88); text-decoration:none; }
.footer a:hover{ text-decoration:underline; }

.small{
  font-size: 12px;
  color: rgba(255,255,255,.58);
}

/* =========================
   13) Nav responsive (sin hamburger)
========================= */
@media (max-width: 820px){
  .nav{ gap: 10px; }
  .nav-links{ gap: 12px; }
  .nav-links a{ font-size: 12px; }
}

/* =========================
   14) Reduced motion
========================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto !important; }
  .btn{ transition: none !important; }
}
