/* =========================================================
   XENTRA ASSURE | Minimal Corporate Theme (Form to Email)
   ========================================================= */

:root{
  --bg:#ffffff;
  --soft:#f6f8fb;
  --line:#e6edf5;

  --text:#0f172a;
  --muted:#475569;

  --brand:#0a254d;     /* navy */
  --brand2:#103a73;

  --shadow: 0 12px 32px rgba(2, 8, 23, .08);
  --shadow2: 0 24px 80px rgba(0,0,0,.22);

  --radius:18px;
  --container:1160px;

  --h1: clamp(34px, 4vw, 54px);
  --h2: clamp(22px, 2.4vw, 34px);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

/* ===== Header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner{
  min-height: 92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
}

/* Brand = SOLO LOGO (sin texto) */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.brand-logo{
  height:180px; /* ajusta aquí si quieres más grande */
  width:auto;
}

/* ocultar texto si existiera */
.brand-text{ display:none !important; }

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:700;
  font-size:14px;
}

.nav a:hover{
  background: rgba(10, 37, 77, 0.06);
  color: var(--brand);
}

.nav a.active{
  background: rgba(10, 37, 77, 0.08);
  color: var(--brand);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:14px;
  padding:12px 16px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
}

.btn.primary{
  background:var(--brand);
  color:#fff;
  box-shadow: 0 10px 24px rgba(10,37,77,.18);
}

.btn.primary:hover{ background:var(--brand2); }

.btn.ghost{
  background:#fff;
  color:var(--text);
  border-color: rgba(15,23,42,0.14);
}

.btn.ghost:hover{ background: rgba(15,23,42,0.04); }

.btn.block{ width:100%; }

/* ===== Hero ===== */
.hero{
  padding: 54px 0 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 75%, #f6f8fb 100%);
  border-bottom: 1px solid var(--line);
}

.breadcrumb{
  font-size:13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ text-decoration: underline; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:start;
}

h1{
  margin:0 0 12px;
  font-size: var(--h1);
  line-height:1.06;
  letter-spacing:-.6px;
}

.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:18px;
  max-width: 62ch;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top: 10px;
}

.kpis{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 18px;
}

.kpi{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 12px;
  min-width: 160px;
}

.kpi b{
  display:block;
  color:var(--brand);
  font-size:13px;
}

.kpi span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}

.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}

.panel h3{
  margin:0 0 6px;
  font-size:18px;
  letter-spacing:-.2px;
}

.panel p{ margin:0 0 10px; color:var(--muted); }
.panel ul{ margin:0 0 14px; padding-left:18px; color: var(--muted); }
.panel li{ margin:6px 0; }

/* ===== Sections ===== */
.section{ padding: 58px 0; }
.section.soft{
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{
  max-width: 880px;
}

h2{
  margin:0 0 10px;
  font-size: var(--h2);
  letter-spacing:-.4px;
}

.sub{
  margin:0 0 20px;
  color:var(--muted);
}

.cards{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 24px rgba(2, 8, 23, .05);
}

.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 8px;
}

.card h3{
  margin:0;
  font-size:18px;
  letter-spacing:-.2px;
}

.tag{
  border:1px solid rgba(10,37,77,0.16);
  background: rgba(10,37,77,0.06);
  color: var(--brand);
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
}

.card p{ margin:0 0 10px; color:var(--muted); }
.card ul{ margin:0; padding-left:18px; color:var(--muted); }
.card li{ margin:6px 0; }

.link{
  display:inline-flex;
  margin-top: 12px;
  font-weight:900;
  color: var(--brand);
}

.link:hover{ text-decoration: underline; }

/* ===== Footer ===== */
.footer{
  background:#fff;
  border-top:1px solid var(--line);
  padding: 34px 0;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}

.footer strong{ letter-spacing:.2px; }
.footer .muted{ color:var(--muted); }

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.footer-links a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
  font-weight:800;
}

.footer-links a:hover{
  background: rgba(10, 37, 77, 0.06);
  color: var(--brand);
}

.footer-bottom{
  margin-top: 14px;
  padding-top: 14px;
  border-top:1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ===== Modal Form ===== */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.modal.is-open{ display:block; }

.modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(7, 18, 38, 0.55);
  backdrop-filter: blur(4px);
}

.modal__panel{
  position:relative;
  width: min(760px, calc(100% - 32px));
  margin: 60px auto;
  background:#fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  padding: 22px 22px 18px;
  border: 1px solid rgba(15,23,42,0.08);
}

.modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 14px;
}

.modal__close{
  border:0;
  background:transparent;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  color:var(--text);
  padding:6px 10px;
  border-radius:10px;
}
.modal__close:hover{ background: rgba(15,23,42,0.06); }

.form .field{ margin: 12px 0; }
.form label{
  display:block;
  font-weight:750;
  font-size:14px;
  margin-bottom:6px;
  color:var(--text);
}

.form input, .form select, .form textarea{
  width:100%;
  border: 1px solid rgba(15,23,42,0.16);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  outline:none;
  background:#fff;
}

.form input:focus, .form select:focus, .form textarea:focus{
  border-color: rgba(10,37,77,0.45);
  box-shadow: 0 0 0 4px rgba(10,37,77,0.10);
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.form-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top: 14px;
}

.notice{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.notice.ok{
  border-color: rgba(16, 185, 129, .35);
  background: rgba(16, 185, 129, .06);
  color: #065f46;
}

.notice.err{
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .06);
  color: #7f1d1d;
}

.tiny{ font-size:12px; color: var(--muted); margin-top:10px; }

/* Honeypot invisible */
.hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .cards{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .brand-logo{ height:58px; }
}

@media (max-width: 700px){
  .modal__panel{ margin: 18px auto; }
  .grid2{ grid-template-columns: 1fr; }
}