/* ==========================================================
   FRIAS OPS — Landing page
   Paleta extraída de la identidad de marca real (navy + rojo)
   ========================================================== */

:root {
  --navy: #0B1F4B;
  --navy-dark: #071433;
  --navy-mid: #14295c;
  --navy-soft: #eef1f8;
  --red: #A9070F;
  --red-bright: #FFFFFF;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --text: #000000;
  --muted: #5C6478;
  --muted-light: #8890A0;
  --line: rgba(11, 31, 75, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px -12px rgba(7, 20, 51, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(7, 20, 51, 0.35);

  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: 820px; }

.accent { color: var(--red); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .9em;
  display: inline-block;
}
.eyebrow--light { color: #FF8A8F; }

.lead-light { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -8px rgba(169,7,15,.55); }
.btn--accent:hover { background: var(--red-bright); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy-soft); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.96);
  border-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(7,20,51,.3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__brand { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo { height: 42px; width: auto; flex-shrink: 0; }
.nav__links {
  display: flex;
  gap: 22px;
  font-size: .9rem;
  font-weight: 500;
}
.nav__links a { color: var(--text); position: relative; padding: 6px 0; white-space: nowrap; }
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .2s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav__social {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--navy-soft);
  transition: background .2s ease, color .2s ease;
}
.nav__social:hover { background: var(--navy); color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav__burger span {
  display: block; height: 2px; width: 22px;
  background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* ==========================================================
   HERO
   ========================================================== */
.hero { padding-top: var(--nav-h); background: var(--white); }
.hero__banner { width: 100%; line-height: 0; }
.hero__banner img { width: 100%; height: auto; display: block; }

.hero__content { max-width: 900px; margin: 0 auto; padding: 36px 24px 8px; text-align: center; }
.hero__content h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.hero__lead { font-size: 1.08rem; max-width: 640px; margin: 0 auto 26px; }

.hero__ctas-wrap {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 0 32px;
}

/* ---------- Franja especialistas ---------- */
.franja { background: var(--navy-soft); padding: 20px 0; }
.franja p {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: .96rem;
  font-style: italic;
  color: var(--navy);
}

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 8px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  padding-right: 18px;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  white-space: nowrap;
}
.marquee__group span:nth-child(odd) { color: var(--red-bright); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================
   SECTIONS — layout shared
   ========================================================== */
.section { padding: 96px 0; }
.section--alt { background: var(--off-white); }
.section--dark {
  background: var(--navy);
  color: rgba(255,255,255,.9);
}
.section--dark h2 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,.7); }

.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__head p { max-width: 640px; margin-left: auto; margin-right: auto; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.grid-2--reverse { direction: rtl; }
.grid-2--reverse > * { direction: ltr; }
.grid-2--top { align-items: start; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Quienes somos: pillars ---------- */
.pillars { display: flex; flex-direction: column; gap: 16px; }
.pillar-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  text-align: center;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .08em;
}
.pillar-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.pillar-card p { margin: 0; font-size: .93rem; }

.pillar-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pillar-card__row h3 { margin: 0; }

.section-body { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-body:last-child { margin-bottom: 0; }
.pilares-head { text-align: center; margin: 8px 0 20px; }
.pillars--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ofrecemos-cierre { max-width: 920px; margin: 40px auto 0; text-align: center; font-size: 1.02rem; color: var(--text); }

/* ---------- Por que: anticipar grid ---------- */
.por-que-intro { color: var(--white); font-weight: 600; margin-top: 18px; }
.anticipar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 44px 0 40px;
}
.anticipar-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
}
.anticipar-card__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.anticipar-icon { color: var(--red-bright); }
.anticipar-icon svg { width: 34px; height: 34px; display: block; }
.anticipar-card h3 { color: var(--white); font-size: 1.1rem; margin: 0; }
.anticipar-card p { color: rgba(255,255,255,.65); font-size: .93rem; margin: 0; }
.por-que-cierre { max-width: 780px; color: rgba(255,255,255,.75); font-size: 1.02rem; text-align: center; margin: 0 auto; }

.resultado-label {
  font-weight: 600;
  color: var(--navy);
}
/* ---------- Como trabajamos: pasos ---------- */
.pasos {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
.paso { text-align: center; }
.paso__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}
.paso-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  background: var(--red);
  width: 38px; height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.paso h3 { margin: 0; }
.paso p { font-size: .93rem; }
.paso-line {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-top: 19px;
}

/* ---------- Workspace ---------- */
.workspace__art { display: flex; justify-content: center; }

.workspace__badge {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--navy-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
}
.workspace__badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------- Proyectos ---------- */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.proyecto-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: background .2s ease, border-color .2s ease;
  text-align: center;
}
.proyecto-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); }
.proyecto-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.proyecto-card p { color: rgba(255,255,255,.65); font-size: .92rem; margin: 0; }

/* ---------- Datos ---------- */
.datos__icon { display: flex; justify-content: center; color: var(--navy); }
.datos__icon svg { width: 130px; height: 130px; }

/* ---------- FAQ Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}
.acc-trigger svg { flex-shrink: 0; color: var(--red); transition: transform .25s ease; }
.acc-item.is-open .acc-trigger svg { transform: rotate(180deg); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.acc-panel p { padding: 0 22px 20px; margin: 0; font-size: .95rem; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto 32px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-light);
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__mark { display: flex; align-items: center; gap: 9px; }
.footer__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .03em;
  color: var(--white);
}
.footer__brand p { font-size: .88rem; color: rgba(255,255,255,.55); max-width: 240px; }
.footer h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer__contact, .footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: .93rem; }
.footer__contact a:hover, .footer__nav a:hover { color: var(--white); }
.footer__social { display: flex; gap: 10px; margin-top: 6px; }
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
  transition: background .2s ease;
}
.footer__social a:hover { background: var(--red); }
.footer__bottom { padding: 22px 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.45); }
.footer__bottom p { color: rgba(255,255,255,.45); }

/* ==========================================================
   WHATSAPP FLOTANTE
   ========================================================== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  z-index: 190;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn--sm { display: none; }

  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .grid-2, .grid-2--reverse { grid-template-columns: 1fr; direction: ltr; }
  .anticipar-grid, .servicios-grid, .pillars--row { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; }

  .pasos { grid-template-columns: 1fr; }
  .paso-line { display: none; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero__ctas-wrap { flex-direction: column; align-items: stretch; }
  .hero__ctas-wrap .btn { justify-content: center; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}