/* =========================================================
   SAFECORP — Hoja de estilos compartida (mockup multipágina)
   ========================================================= */

:root {
  --navy-950: #060d16;
  --navy-900: #0b1420;
  --navy-800: #111f30;
  --navy-700: #1a2c42;
  --line: #24384f;
  --ink: #eef2f6;
  --ink-muted: #9fb0c3;
  --amber: #c9962e;
  --amber-soft: #e8c377;
  --white: #ffffff;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { color: var(--ink-muted); max-width: 62ch; }
p.lead { font-size: 1.15rem; color: var(--ink); max-width: 56ch; }

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.section--tight { padding: 56px 0; }
.section--alt { background: var(--navy-800); }

.kicker {
  display: inline-block;
  color: var(--amber);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* ---------- Header ---------- */
/* Mobile-first: solo el header queda fijo. La franja de contacto y la
   cinta de servicios viven en flujo normal (ver override de escritorio
   más abajo, donde los tres vuelven a apilarse pegados arriba). */
.contact-strip { position: static; }
.site-header { position: sticky; top: 0; z-index: 50; }
.service-marquee { position: static; }

/* Escritorio: comportamiento original — los tres se apilan y quedan
   pegados arriba en conjunto (hay espacio de sobra en pantallas grandes). */
@media (min-width: 881px) {
  .contact-strip { position: sticky; top: 0; z-index: 51; }
  .site-header { position: sticky; top: 54px; z-index: 50; }
  .service-marquee { position: sticky; top: 143px; z-index: 49; }
}

.site-header {
  background: rgba(6, 13, 22, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  max-width: 1450px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img { height: 34px; width: auto; }
.brand--header img { height: 56px; }
.brand--header .brand-name { font-size: 1.6rem; line-height: 1.1; letter-spacing: 0.01em; }

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  flex: 1;
}
.nav a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover { border-color: var(--amber-soft); }
.nav a[aria-current="page"] { border-color: var(--amber); background: rgba(201, 150, 46, 0.12); }

.nav-cta {
  margin-left: auto;
  background: var(--amber);
  color: var(--navy-950) !important;
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta--ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.nav-cta--ghost:hover { border-color: var(--amber); color: var(--amber-soft) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 3px;
  font-size: 1.1rem;
}

.contact-strip {
  background: var(--navy-950);
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.contact-strip .wrap {
  max-width: 1450px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 28px;
}
.contact-strip a:hover { color: var(--amber-soft); }
.contact-strip__jobs {
  color: var(--amber) !important;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid rgba(201, 150, 46, 0.5);
  padding: 8px 20px;
  border-radius: 999px;
}
.contact-strip__jobs:hover { border-color: var(--amber); background: rgba(201, 150, 46, 0.1); }
.lang-switch {
  margin-left: auto;
  color: var(--ink) !important;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-switch:hover { border-color: var(--amber-soft); color: var(--amber-soft) !important; }
.lang-switch--flag {
  padding: 0;
  width: 32px;
  height: 23px;
  border-radius: 4px;
  overflow: hidden;
}
.lang-switch--flag svg { width: 100%; height: 100%; display: block; }
.lang-switch--flag:hover { border-color: var(--amber-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy-950);
}
.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,13,22,.97) 8%, rgba(6,13,22,.55) 55%, rgba(6,13,22,.25) 100%);
}
.hero__content {
  position: relative;
  padding-bottom: 64px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero__price {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--ink-muted);
}
.credential-line {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--ink-muted);
}
.footer-grid .credential-line { margin-top: 10px; }

.page-hero {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
}
.page-hero p.lead { margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn--primary { background: var(--amber); color: var(--navy-950); }
.btn--primary:hover { background: var(--amber-soft); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-soft); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip div {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.stat-strip div:first-child { border-left: none; }
.stat-strip .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--amber);
  display: block;
}
.stat-strip .label { font-size: 0.85rem; color: var(--ink-muted); }

/* ---------- Grids / cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  padding: 30px;
}
.card img {
  height: 350px;
  object-fit: cover;
}
.card--tag { display: inline-block; font-size: .78rem; color: var(--amber); margin-top: 14px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.seq {
  counter-reset: seq;
}
.seq__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.seq__item:last-child { border-bottom: 1px solid var(--line); }
.seq__num {
  font-family: var(--font-display);
  color: var(--amber);
  font-size: 1.3rem;
}

/* ---------- Pull quote / MVV ---------- */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.mvv-card {
  border-top: 3px solid var(--amber);
  background: var(--navy-800);
  padding: 32px 28px;
}
.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.values-list li {
  border-left: 2px solid var(--amber);
  padding: 6px 0 6px 16px;
  color: var(--ink);
  font-size: .98rem;
}

/* ---------- Testimonials ---------- */
.testi {
  background: var(--navy-800);
  border: 1px solid var(--line);
  padding: 28px;
}
.testi p { color: var(--ink); font-size: 1.02rem; }
.testi__who { margin-top: 16px; font-size: .88rem; color: var(--ink-muted); }
.testi__who b { color: var(--ink); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy-800);
  border: 1px solid var(--line);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { margin: 0 0 6px; }
.cta-banner p { margin: 0; }

/* ---------- Services marquee (banner deslizante) ---------- */
.service-marquee {
  overflow: hidden;
  background: var(--navy-950);
  border-bottom: 1px solid var(--line);
}
.service-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.service-marquee:hover .service-marquee__track,
.service-marquee:focus-within .service-marquee__track {
  animation-play-state: paused;
}
.service-marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 12px 34px;
  font-size: .82rem;
  color: var(--ink-muted);
  letter-spacing: .01em;
}
.service-marquee__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .service-marquee__track { animation: none; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.contact-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  padding: 34px;
}
.contact-card__img {
  width: calc(100% + 68px);
  margin: -34px -34px 26px;
  height: 240px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.info-list { list-style: none; padding: 0; margin: 20px 0 0; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}
.info-list li:first-child { border-top: none; padding-top: 0; }
.info-list .ic {
  color: var(--amber);
  font-size: .8rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  margin-top: 3px;
}

form.quote { margin: 0; }

form.quote {
  display: grid;
  gap: 14px;
}
form.quote input, form.quote select, form.quote textarea {
  width: 100%;
  background: var(--navy-950);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: .95rem;
  border-radius: 3px;
}
form.quote label { font-size: .82rem; color: var(--ink-muted); display: block; margin-bottom: 6px; }
form.quote textarea { min-height: 110px; resize: vertical; }
form.quote input[type="file"] { padding: 10px 14px; cursor: pointer; }
form.quote input[type="file"]::file-selector-button {
  background: var(--amber);
  color: var(--navy-950);
  border: none;
  padding: 7px 14px;
  border-radius: 3px;
  font-weight: 700;
  margin-right: 12px;
  cursor: pointer;
}
form.quote .file-hint { font-size: .78rem; color: var(--ink-muted); margin-top: 6px; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--ink-muted);
}
.checkbox-row input { width: auto; margin-top: 3px; accent-color: var(--amber); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Chips de valores (Trabaja con nosotros) ---------- */
.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.value-chips span {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
}
.value-chips span::before {
  content: "●";
  color: var(--amber);
  margin-right: 8px;
  font-size: .6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-950);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-grid h4 { font-size: .85rem; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-muted); font-size: .9rem; }
.footer-grid a:hover { color: var(--amber-soft); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: .8rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  color: #ffffff !important;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 60;
}
.whatsapp-fab svg { display: block; }

/* ---------- Volver arriba ---------- */
.back-to-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 55;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: var(--amber); color: var(--amber-soft); }

/* ---------- Barra de acciones fija (solo móvil) ---------- */
.mobile-cta-bar { display: none; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 2px; margin-top: 22px; }
.faq details {
  background: var(--navy-800);
  border: 1px solid var(--line);
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--amber);
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: var(--amber); }
.faq p { margin: 14px 0 0; color: var(--ink-muted); max-width: none; }

/* ---------- Responsive ---------- */
/* El menú horizontal con 8 botones + CTA mide ~1302px de ancho real
   (medido con font/gap/padding finales). El header tiene su propio
   max-width de 1450px (por encima) para darle espacio en pantallas
   grandes; por debajo de este punto no cabe sin apretarse, así que
   se colapsa a hamburguesa — se maneja aparte del resto de reglas
   "móvil" de abajo, que siguen en su propio punto de quiebre (880px). */
@media (max-width: 1400px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 880px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(3) { border-left: none; }
  .grid--3, .grid--2, .split, .mvv-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .values-list { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .contact-strip .wrap { flex-wrap: wrap; row-gap: 4px; }

  /* En móvil, la barra fija de abajo reemplaza al botón flotante de WhatsApp */
  body { padding-bottom: 62px; }
  .whatsapp-fab { display: none; }
  .back-to-top { left: auto; right: 16px; bottom: 76px; width: 42px; height: 42px; }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    background: var(--navy-950);
    border-top: 1px solid var(--line);
  }
  .mobile-cta-bar a {
    flex: 1;
    text-align: center;
    padding: 15px 8px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    border-right: 1px solid var(--line);
  }
  .mobile-cta-bar a:last-child { border-right: none; }
  .mobile-cta-bar a.is-primary { background: var(--amber); color: var(--navy-950); }
}

body.nav-open .nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-900);
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 28px 26px;
  border-bottom: 1px solid var(--line);
  gap: 4px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
body.nav-open .nav a {
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
body.nav-open .nav a:last-of-type { border-bottom: none; }
body.nav-open .nav-cta { text-align: center; margin-top: 10px; }

.partner-link { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 2px; }
.partner-link:hover { color: var(--amber-soft); }


/* ---------- Confirmation / thank-you pages ---------- */
.confirm-wrap { display:flex; align-items:center; justify-content:center; min-height:64vh; padding:80px 20px; }
.confirm-card { max-width:560px; width:100%; text-align:center; }
.confirm-seal {
  width:76px; height:76px; margin:0 auto 26px; border-radius:50%;
  background:rgba(201,150,46,0.12); border:1px solid rgba(201,150,46,0.35);
  display:flex; align-items:center; justify-content:center;
}
.confirm-card h1 { margin-bottom:14px; }
.confirm-card h1 em { color:var(--amber-soft); font-style:normal; }
.confirm-card .lead { margin:0 auto 30px; }
.confirm-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:34px; }
.confirm-note {
  border:1px solid var(--line); border-radius:12px; padding:16px 18px;
  color:var(--ink-muted); font-size:14px; text-align:left;
}
.confirm-note a { color:var(--amber-soft); }

/* ---------- Checklist reveal ---------- */
.checklist-box { border:1px solid var(--line); border-radius:12px; padding:8px 0; margin:30px 0; text-align:left; }
.checklist-item {
  display:flex; gap:16px; align-items:flex-start; padding:16px 24px;
  border-bottom:1px solid var(--line);
}
.checklist-item:last-child { border-bottom:none; }
.checklist-item__num {
  flex:none; width:30px; height:30px; border-radius:50%; background:var(--navy-800);
  color:var(--amber); font-weight:800; font-family:var(--font-display);
  display:flex; align-items:center; justify-content:center; font-size:.9rem;
}
.checklist-item p { margin:0; color:var(--ink); }
@media print {
  .contact-strip, .site-header, .service-marquee, .mobile-cta-bar, .whatsapp-fab,
  .back-to-top, .site-footer, .confirm-actions { display:none !important; }
  body { background:#fff; color:#000; }
  .checklist-item p, h1, h2 { color:#000 !important; }
}
