/* ============================================================
   OP HOME v3 — armonizado con el design system de la guía
   florida-sales-tax (2026-07-02): claro, navy #0d2b4e,
   rojo #c94040, Montserrat, botones pill, glows radiales.
   Estructura/HTML de front-page.php sin cambios (clases oph-*).
   ============================================================ */

.op-home {
  --op-navy: #0d2b4e;
  --op-accent: #c94040;
  --op-accent-hover: #a83232;
  --op-cta-shadow: rgba(201, 64, 64, 0.32);
  --op-text: #0d1f35;
  --op-text-2: #2c4060;
  --op-muted: #5a7290;
  --op-faint: #9ab0c8;
  --op-surface: #f4f6f9;
  --op-border: rgba(13, 43, 78, 0.09);
  --op-border-strong: rgba(13, 43, 78, 0.16);
  --op-glow: rgba(13, 43, 78, 0.05);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  color: var(--op-text-2);
  background: #FFFFFF;
}

.op-home *,
.op-home *::before,
.op-home *::after { box-sizing: border-box; margin: 0; padding: 0; }

.op-home section { padding: 104px 24px; }
.op-home .oph-wrap { max-width: 1140px; margin: 0 auto; }

/* ---------- Tipografía ---------- */

.op-home h1, .op-home h2, .op-home h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.12;
  color: var(--op-text);
}

.op-home .oph-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--op-accent);
  margin-bottom: 18px;
}

/* Palabra acento: itálica roja (patrón de la guía) */
.op-home .oph-accent {
  font-style: italic;
  color: var(--op-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ---------- Botones pill ---------- */

.op-home .oph-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.op-home .oph-btn--primary {
  background: var(--op-accent);
  color: #FFFFFF;
  box-shadow: 0 3px 14px var(--op-cta-shadow);
}
.op-home .oph-btn--primary:hover {
  background: var(--op-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px var(--op-cta-shadow);
}

.op-home .oph-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--op-border-strong);
  color: var(--op-text-2);
}
.op-home .oph-btn--ghost:hover { border-color: var(--op-accent); color: var(--op-accent); }

.op-home .oph-btn--white { background: #FFFFFF; color: var(--op-text); }
.op-home .oph-btn--white:hover { background: #f0f2f6; transform: translateY(-1px); }

.op-home a:focus-visible,
.op-home button:focus-visible {
  outline: 2px solid var(--op-accent);
  outline-offset: 3px;
}

/* ============================================================
   SECCIÓN 1 — HERO (claro, editorial, glow rojo sutil)
   ============================================================ */

.op-home .oph-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFFFF;
  border-bottom: 1px solid var(--op-border);
  position: relative;
  overflow: hidden;
}

.op-home .oph-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 64, 64, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.op-home .oph-hero .oph-hero-inner { max-width: 880px; position: relative; z-index: 1; }

.op-home .oph-hero h1 {
  font-size: 64px;
  margin-bottom: 26px;
  letter-spacing: -1px;
}

.op-home .oph-hero .oph-sub {
  font-size: 19px;
  font-weight: 400;
  color: var(--op-text-2);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.op-home .oph-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.op-home .oph-stats { display: flex; justify-content: center; margin-top: 56px; }

.op-home .oph-stat {
  padding: 0 40px;
  border-right: 1px solid var(--op-border-strong);
  text-align: center;
}
.op-home .oph-stat:last-child { border-right: none; }

.op-home .oph-stat-n {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--op-navy);
}

.op-home .oph-stat-l {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--op-muted);
  max-width: 200px;
}

/* ============================================================
   SECCIÓN 2 — BIFURCACIÓN (superficie gris suave)
   ============================================================ */

.op-home .oph--light { background: var(--op-surface); }

.op-home .oph-fork-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}

.op-home .oph-fork-card {
  background: #FFFFFF;
  border: 1px solid var(--op-border);
  border-top: 3px solid var(--op-border-strong);
  border-radius: 14px;
  padding: 40px;
  transition: all 0.2s;
}
.op-home .oph-fork-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 43, 78, 0.08);
}
.op-home .oph-fork-card:first-child { border-top-color: var(--op-navy); }
.op-home .oph-fork-card:last-child { border-top-color: var(--op-accent); }

.op-home .oph-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.op-home .oph-pill--blue { background: var(--op-glow); border: 1px solid var(--op-border-strong); color: var(--op-navy); }
.op-home .oph-pill--red { background: rgba(201, 64, 64, 0.06); border: 1px solid rgba(201, 64, 64, 0.25); color: var(--op-accent); }

.op-home .oph-fork-card h3 { font-size: 23px; margin-bottom: 14px; }
.op-home .oph-fork-card p { font-size: 15px; line-height: 1.65; color: var(--op-text-2); }

.op-home .oph-cardlink {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.op-home .oph-cardlink--blue { color: var(--op-navy); }
.op-home .oph-cardlink--red { color: var(--op-accent); }
.op-home .oph-cardlink:hover { text-decoration: underline; }

/* ============================================================
   SECCIÓN 3 — CÓMO FUNCIONA (blanco)
   ============================================================ */

.op-home .oph-h2 { font-size: 40px; margin-bottom: 18px; }

.op-home .oph-sub2 {
  font-size: 17px;
  color: var(--op-muted);
  max-width: 640px;
}

.op-home .oph-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.op-home .oph-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--op-border-strong);
}

.op-home .oph-step { position: relative; padding-top: 36px; }

.op-home .oph-step-num {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--op-accent);
  background: #FFFFFF;
  padding-right: 12px;
}

.op-home .oph--light .oph-step-num { background: var(--op-surface); }

.op-home .oph-step h3 { font-size: 17px; margin-bottom: 10px; }
.op-home .oph-step p { font-size: 14px; color: var(--op-muted); line-height: 1.65; }

/* --- Diferenciador: bloque dark gradient (único momento oscuro) --- */

.op-home .oph-edge {
  margin-top: 72px;
  background: linear-gradient(145deg, #172035 0%, #261525 50%, #1a0f2a 100%);
  border: 1px solid rgba(201, 64, 64, 0.35);
  border-radius: 14px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.op-home .oph-edge::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201, 64, 64, 0.13) 0%, transparent 65%);
  pointer-events: none;
}
.op-home .oph-edge > * { position: relative; z-index: 1; }
.op-home .oph-edge h3 { font-size: 28px; margin-bottom: 14px; color: #FFFFFF; }
.op-home .oph-edge p { max-width: 720px; margin: 0 auto 24px; color: #b8c9de; font-size: 15px; }

.op-home .oph-edge-pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.op-home .oph-edge-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: #e6edf5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 8px 18px;
}

/* --- Grid de servicios --- */

.op-home .oph-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.op-home .oph-service {
  background: #FFFFFF;
  border: 1px solid var(--op-border);
  border-top: 3px solid var(--op-border-strong);
  border-radius: 8px;
  padding: 20px 24px;
  transition: all 0.2s;
}
.op-home .oph-service:hover { border-top-color: var(--op-accent); }
.op-home a.oph-service { display: block; text-decoration: none; }
.op-home a.oph-service:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13, 43, 78, 0.07); }

.op-home .oph-service h4 { font-size: 14px; font-weight: 700; color: var(--op-text); margin-bottom: 6px; }
.op-home .oph-service p { font-size: 13px; color: var(--op-muted); line-height: 1.6; }

.op-home .oph-s3-cta { text-align: center; margin-top: 64px; }
.op-home .oph-s3-cta .oph-ghostlink {
  display: inline-block;
  margin-left: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--op-text-2);
  text-decoration: none;
}
.op-home .oph-s3-cta .oph-ghostlink:hover { color: var(--op-accent); }

/* ============================================================
   SECCIÓN 4 — BANKING INSIGHTS (superficie)
   ============================================================ */

.op-home .oph-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.op-home .oph-feature {
  background: #FFFFFF;
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 32px;
  transition: all 0.2s;
}

.op-home .oph-feature:hover {
  border-color: rgba(201, 64, 64, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 43, 78, 0.08);
}

.op-home .oph-ficon {
  width: 42px;
  height: 42px;
  background: rgba(201, 64, 64, 0.07);
  border: 1px solid rgba(201, 64, 64, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--op-accent);
  margin-bottom: 18px;
}

.op-home .oph-feature h3 { font-size: 16px; margin-bottom: 10px; }
.op-home .oph-feature p { font-size: 14px; color: var(--op-text-2); line-height: 1.65; }

.op-home .oph-feature .oph-learn {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--op-accent);
  text-decoration: none;
}
.op-home .oph-feature .oph-learn:hover { text-decoration: underline; }

/* --- Compliance Hub banner --- */

.op-home .oph-hub {
  margin-top: 48px;
  background: #FFFFFF;
  border: 1px solid var(--op-border);
  border-left: 3px solid var(--op-accent);
  border-radius: 14px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.op-home .oph-hub h3 { font-size: 25px; margin-bottom: 14px; }
.op-home .oph-hub p { font-size: 15px; color: var(--op-text-2); margin-bottom: 24px; }

.op-home .oph-hub-list { list-style: none; }
.op-home .oph-hub-list li {
  font-size: 15px;
  color: var(--op-text);
  font-weight: 500;
  padding: 7px 0 7px 30px;
  position: relative;
}
.op-home .oph-hub-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1a7a42;
  font-weight: 700;
}

/* ============================================================
   SECCIÓN 5 — SOCIAL PROOF (blanco)
   ============================================================ */

.op-home .oph-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.op-home .oph-quote {
  background: #FFFFFF;
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13, 43, 78, 0.04);
}

.op-home .oph-quote::before {
  content: '\201C';
  position: absolute;
  top: 4px;
  left: 16px;
  font-size: 96px;
  line-height: 1;
  color: rgba(13, 43, 78, 0.07);
  font-family: Georgia, serif;
}

.op-home .oph-quote p {
  font-size: 15.5px;
  color: var(--op-text-2);
  line-height: 1.7;
  position: relative;
  margin-bottom: 20px;
}

.op-home .oph-quote-who { font-size: 13.5px; font-weight: 700; color: var(--op-text); }
.op-home .oph-quote-role { font-size: 11.5px; font-weight: 500; color: var(--op-muted); display: block; margin-top: 2px; }

.op-home .oph-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.op-home .oph-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--op-text-2);
  background: #FFFFFF;
  border: 1px solid var(--op-border);
  border-radius: 999px;
  padding: 10px 20px;
}

.op-home .oph-badge svg { color: var(--op-accent); flex-shrink: 0; }

/* ============================================================
   SECCIÓN 6 — DUAL CTA (dark gradient de la guía)
   ============================================================ */

.op-home .oph-final {
  background: linear-gradient(145deg, #172035 0%, #261525 50%, #1a0f2a 100%);
  position: relative;
  overflow: hidden;
}
.op-home .oph-final::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201, 64, 64, 0.13) 0%, transparent 65%);
  pointer-events: none;
}
.op-home .oph-final .oph-wrap { position: relative; z-index: 1; }

.op-home .oph-final .oph-eyebrow { color: #ff9a9a; }

.op-home .oph-final-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: center;
}

.op-home .oph-final-divider { width: 1px; height: 100%; min-height: 180px; background: rgba(255, 255, 255, 0.12); }

.op-home .oph-final-col h3 { font-size: 28px; margin: 14px 0; color: #FFFFFF; }
.op-home .oph-final-col p { font-size: 15px; color: #b8c9de; margin-bottom: 24px; max-width: 400px; }

/* ============================================================
   FOOTER — claro estilo guía
   ============================================================ */

.op-home .oph-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--op-border);
  padding: 56px 24px 0;
}

.op-home .oph-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.op-home .oph-footer h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--op-muted);
  margin-bottom: 14px;
}

.op-home .oph-footer p,
.op-home .oph-footer a {
  font-size: 13.5px;
  color: var(--op-text-2);
  text-decoration: none;
  line-height: 1.9;
}

.op-home .oph-footer a { display: block; transition: color 0.2s; }
.op-home .oph-footer a:hover { color: var(--op-accent); }

.op-home .oph-footer-tag { max-width: 300px; margin-top: 14px; color: var(--op-muted); }

.op-home .oph-footer-bottom {
  border-top: 1px solid var(--op-border);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--op-muted);
}

/* ============================================================
   ANIMACIONES DE SCROLL (desktop, respeta reduced-motion)
   ============================================================ */

@media (min-width: 981px) {
  .op-home .oph-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  .op-home .oph-reveal--left { transform: translateX(-32px); }
  .op-home .oph-reveal--right { transform: translateX(32px); }
  .op-home .oph-reveal.is-in { opacity: 1; transform: none; }

  .op-home [data-d="1"] { transition-delay: 80ms; }
  .op-home [data-d="2"] { transition-delay: 160ms; }
  .op-home [data-d="3"] { transition-delay: 240ms; }
  .op-home [data-d="4"] { transition-delay: 320ms; }
  .op-home [data-d="5"] { transition-delay: 400ms; }
}

@media (prefers-reduced-motion: reduce) {
  .op-home .oph-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .op-home section { padding: 72px 24px; }
  .op-home .oph-hero h1 { font-size: 44px; }
  .op-home .oph-h2 { font-size: 32px; }
  .op-home .oph-fork-grid,
  .op-home .oph-features,
  .op-home .oph-quotes { grid-template-columns: 1fr; }
  .op-home .oph-steps { grid-template-columns: 1fr 1fr; }
  .op-home .oph-steps::before { display: none; }
  .op-home .oph-services { grid-template-columns: 1fr 1fr; }
  .op-home .oph-hub { grid-template-columns: 1fr; }
  .op-home .oph-final-grid { grid-template-columns: 1fr; }
  .op-home .oph-final-divider { width: 100%; height: 1px; min-height: 0; }
  .op-home .oph-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .op-home section { padding: 56px 20px; }
  .op-home .oph-hero h1 { font-size: 34px; }
  .op-home .oph-h2 { font-size: 27px; }
  .op-home .oph-steps,
  .op-home .oph-services { grid-template-columns: 1fr; }
  .op-home .oph-stats { flex-direction: column; gap: 24px; }
  .op-home .oph-stat { border-right: none; padding: 0; }
}
