/* =========================
   STORHED — Premium Corporate
   ========================= */

:root{
  --blue:#2c6388;
  --blue2:#3b637b;
  --gray:#979fa4;
  --grayLight:#c4d1d9;
  --white:#ffffff;

  --ink:#0f172a;
  --muted:rgba(15,23,42,.70);

  --shadow-sm:0 8px 24px rgba(15,23,42,.08);
  --shadow-md:0 18px 42px rgba(15,23,42,.12);

  --radius:14px;
  --radius-sm:10px;
  --container:1120px;

  --header-h:72px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background: #ffffff;
  line-height:1.5;
}

img{ max-width:100%; display:block; }
a{ color:inherit; }
p{ margin:0 0 14px; }
h1,h2,h3{ margin:0 0 12px; letter-spacing:-0.02em; }
ul{ margin:0; padding-left:18px; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto;height:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--grayLight);
  border-radius:10px;
  z-index:9999;
}

/* HEADER */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196,209,217,.55);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled{
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.header-inner{
  min-height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

/* Brand (2 líneas, más legible) */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand-mark{
  width:32px;
  height:32px;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand-name{
  font-size: 1.06rem;
  font-weight: 650;
  color: var(--blue);
}
.brand-sub{
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: none;
  color: rgba(15,23,42,.55);
}

/* NAV */
.nav{ display:flex; align-items:center; gap:12px; }
.nav-menu{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav-link{
  text-decoration:none;
  font-size:.92rem;
  color: rgba(15,23,42,.78);
  padding:10px 2px;
  position:relative;
}
.nav-link:hover{ color: rgba(15,23,42,.92); }
.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:6px;
  width:0%;
  height:1px;
  background: rgba(44,99,136,.55);
  transition: width .22s ease;
}
.nav-link:hover::after{ width:100%; }

.nav-cta{ margin-left:6px; }

.nav-toggle{
  display:none;
  border:1px solid rgba(196,209,217,.9);
  background: rgba(255,255,255,.6);
  border-radius: 12px;
  padding:10px 12px;
  cursor:pointer;
}
.nav-toggle-lines{
  display:block;
  width:22px;
  height:2px;
  background: rgba(15,23,42,.8);
  position:relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background: rgba(15,23,42,.8);
}
.nav-toggle-lines::before{ top:-7px; }
.nav-toggle-lines::after{ top:7px; }

.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); border:0;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 12px;
  padding: 12px 16px;
  text-decoration:none;
  font-size:.95rem;
  font-weight: 600;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, color .18s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--blue);
  color: #ffffff;           /* CTA siempre blanco */
  border-color: rgba(44,99,136,.2);
}
.btn-primary:hover{ background: var(--blue2); }
.btn-ghost{
  background: rgba(255,255,255,.65);
  color: rgba(15,23,42,.82);
  border-color: rgba(196,209,217,.95);
}
.btn-ghost:hover{
  border-color: rgba(44,99,136,.35);
  color: rgba(15,23,42,.92);
}

/* HERO (look web, no impreso) */
.hero{
  padding: 34px 0 44px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}
.eyebrow{
  font-size:.86rem;
  color: rgba(15,23,42,.62);
  letter-spacing:.06em;
  margin-bottom: 10px;
}
.hero-title{
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  line-height:1.12;
  margin-bottom: 12px;
}
.hero-subtitle{
  font-size: 1.02rem;
  color: rgba(15,23,42,.78);
  max-width: 60ch;
}

/* BADGES premium */
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin: 18px 0 18px;
}
.badge{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(196,209,217,.95);
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 170px;
}
.badge-kpi{
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--blue);
  line-height: 1.1;
}
.badge-label{
  font-size: .78rem;
  color: rgba(15,23,42,.70);
}

/* Hero media (imagen mejor integrada) */
.hero-media-frame{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(196,209,217,.55);
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, rgba(44,99,136,.10), rgba(196,209,217,.18));
}
.hero-media-img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(.92) contrast(1.02);
  transform: scale(1.03);
}
.hero-media-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.20)),
    radial-gradient(60% 70% at 70% 30%, rgba(44,99,136,.22), rgba(44,99,136,0));
  pointer-events:none;
}
.hero-media-chips{
  position:absolute;
  left:14px;
  top:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.chip-mini{
  font-size:.78rem;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(196,209,217,.9);
  color: rgba(15,23,42,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 10px; }
.fineprint{
  margin-top: 14px;
  font-size: .9rem;
  color: rgba(15,23,42,.66);
  max-width: 70ch;
}

/* SECTIONS */
.section{ padding: 64px 0; }
.section-muted{ background: linear-gradient(180deg, rgba(196,209,217,.18), rgba(196,209,217,.10)); }
.section-head{ margin-bottom: 18px; }
.section-title{ font-size: 1.55rem; }
.section-subtitle{ color: rgba(15,23,42,.72); max-width: 75ch; }

.pillars{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card{
  background: rgba(255,255,255,.82);
  border:1px solid rgba(196,209,217,.75);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card-title{ font-size: 1.05rem; margin-bottom: 10px; }
.card-text{ color: rgba(15,23,42,.74); }
.card-list li{ margin: 8px 0; color: rgba(15,23,42,.75); }

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chip{
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(196,209,217,.95);
  background: rgba(255,255,255,.75);
  color: rgba(15,23,42,.82);
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}

/* Steps */
.steps{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}
.step{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items:flex-start;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  border:1px solid rgba(196,209,217,.75);
  box-shadow: var(--shadow-sm);
}
.step-index{
  font-weight: 750;
  color: var(--blue);
  font-size: 1.05rem;
}
.step-title{ font-size: 1.02rem; margin: 0 0 6px; }
.step-text{ margin:0; color: rgba(15,23,42,.74); }

/* Docs panel */
.docs-panel{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding: 18px;
  border-radius: var(--radius);
  border:1px solid rgba(196,209,217,.85);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
}
.docs-copy{ max-width: 78ch; }
.docs-lead{ margin:0 0 6px; color: rgba(15,23,42,.78); }
.docs-meta{ margin:0; color: rgba(15,23,42,.70); }
.docs-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.section-top{ margin-top: 18px; }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form .field{ margin-top: 12px; }
label{ display:block; font-size:.9rem; color: rgba(15,23,42,.70); margin-bottom: 6px; }
input, textarea{
  width:100%;
  border-radius: 12px;
  border:1px solid rgba(196,209,217,.95);
  padding: 12px 12px;
  font: inherit;
  background: rgba(255,255,255,.9);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(44,99,136,.55);
  box-shadow: 0 0 0 4px rgba(44,99,136,.12);
}
.form-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top: 14px;
  flex-wrap:wrap;
}
.form-note{ margin:0; color: rgba(15,23,42,.68); }

/* Footer */
.footer{
  margin-top: 30px;
  background: #0b1220;
  color: rgba(255,255,255,.90);
  padding: 38px 0 18px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  align-items:start;
}
.footer-title{ font-weight: 700; margin-bottom: 8px; }
.footer-text{ color: rgba(255,255,255,.78); margin:0; }
.footer-label{ color: rgba(255,255,255,.70); font-size:.86rem; margin-bottom: 8px; }
.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.72);
}
.link{ color: rgba(255,255,255,.90); }
.link:hover{ text-decoration: underline; }
.muted{ color: rgba(255,255,255,.72); }

/* To top */
.to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border:1px solid rgba(196,209,217,.85);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  display:none;
}

/* Modal */
.modal{
  position: fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 80;
}
.modal[aria-hidden="false"]{ display:flex; }
.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(2px);
}
.modal-card{
  position:relative;
  width: min(560px, 100%);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(196,209,217,.95);
  box-shadow: 0 24px 70px rgba(15,23,42,.24);
  overflow:hidden;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 16px 10px;
  border-bottom:1px solid rgba(196,209,217,.75);
}
.modal-title{ margin:0; font-size: 1.05rem; }
.icon-btn{
  border:1px solid rgba(196,209,217,.95);
  background: rgba(255,255,255,.8);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
}
.modal-body{ padding: 14px 16px 16px; }
.modal-text{ color: rgba(15,23,42,.78); margin: 0 0 14px; }
.modal-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.modal-meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top: 14px;
}
.mini{
  border:1px solid rgba(196,209,217,.85);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.75);
}
.mini-label{ font-size:.78rem; color: rgba(15,23,42,.65); margin-bottom: 4px; }
.mini-value{ font-size:.9rem; color: rgba(15,23,42,.82); }

/* On-scroll reveal */
[data-reveal]{ opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.revealed{ opacity: 1 !important; transform: translateY(0) !important; }

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .pillars{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .docs-panel{ flex-direction: column; align-items:flex-start; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px){
  .nav-toggle{ display:inline-flex; }
  .nav-menu{
    position: absolute;
    right: 22px;
    top: calc(var(--header-h) - 8px);
    width: min(420px, calc(100vw - 44px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: rgba(255,255,255,.94);
    border:1px solid rgba(196,209,217,.85);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display:none;
  }
  .nav-menu.is-open{ display:flex; }
  .nav-link{ padding:10px 10px; border-radius: 12px; }
  .nav-link:hover{ background: rgba(196,209,217,.18); }
  .nav-cta{ margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  [data-reveal]{ transition: none; }
  .btn{ transition: none; }
}
.hero-media-chips{
  display:none !important;
}
/* HERO IMAGE — ocultar texto incrustado de la imagen */
.hero-visual img{
  object-fit: contain !important;
}

/* Si el texto viene incrustado en la imagen, lo dejamos respirar */
.hero-visual{
  padding-bottom: 8px;
}