/* =========================================================
   SEGURFLAME — Landing page
   Paleta e identidad reutilizadas de /styles/style.css
   ========================================================= */

:root {
  --sf-primary: #f54021;
  --sf-primary-dark: #cc2f14;
  --sf-primary-light: #ff6a4d;
  --sf-dark: #24262d;
  --sf-dark-2: #3a3f47;
  --sf-black: #111111;
  --sf-cyan: #56c0e0;
  --sf-gray: #949ba2;
  --sf-light: #e7edf1;
  --sf-white: #ffffff;

  --sf-ok: #21b56a;
  --sf-warn: #f5a623;
  --sf-bad: #e5344a;

  --sf-radius: 16px;
  --sf-radius-sm: 10px;
  --sf-shadow: 0 20px 45px -20px rgba(17, 17, 17, 0.35);
  --sf-shadow-sm: 0 10px 25px -12px rgba(17, 17, 17, 0.25);
  --sf-transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  color: var(--sf-black);
  background: var(--sf-white);
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sf-black);
}

a {
  color: var(--sf-primary);
  text-decoration: none;
}

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

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.section {
  padding: clamp(3.5rem, 6vw, 6.5rem) 0;
}

.section-dark {
  background: var(--sf-dark);
  color: var(--sf-light);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--sf-white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-primary);
  background: rgba(245, 64, 33, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-dark .eyebrow {
  color: var(--sf-primary-light);
  background: rgba(245, 64, 33, 0.18);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--sf-dark-2);
  font-size: 1.05rem;
  max-width: 640px;
}

.section-dark .section-lead {
  color: var(--sf-gray);
}

/* ---------- Botones ---------- */
.btn-sf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.7rem;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: transform var(--sf-transition), box-shadow var(--sf-transition), background var(--sf-transition), color var(--sf-transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-sf-primary {
  background: var(--sf-primary);
  color: var(--sf-white);
  box-shadow: 0 12px 25px -8px rgba(245, 64, 33, 0.55);
}

.btn-sf-primary:hover, .btn-sf-primary:focus {
  background: var(--sf-primary-dark);
  color: var(--sf-white);
  transform: translateY(-2px);
}

.btn-sf-ghost {
  border-color: rgba(17, 17, 17, 0.15);
  color: var(--sf-black);
  background: transparent;
}

.btn-sf-ghost:hover {
  border-color: var(--sf-black);
  transform: translateY(-2px);
}

.section-dark .btn-sf-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--sf-white);
}

.section-dark .btn-sf-ghost:hover {
  border-color: var(--sf-white);
}

.btn-sf-whatsapp {
  background: #25d366;
  color: var(--sf-white);
  box-shadow: 0 12px 25px -8px rgba(37, 211, 102, 0.55);
}

.btn-sf-whatsapp:hover {
  background: #1ebd59;
  color: var(--sf-white);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.sf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.sf-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.sf-header .navbar-brand img {
  height: 34px;
  width: auto;
}

.sf-header .nav-link {
  font-weight: 600;
  color: var(--sf-dark-2);
  padding: 0.5rem 1rem !important;
}

.sf-header .nav-link:hover {
  color: var(--sf-primary);
}

/* ---------- Hero ---------- */
.sf-hero {
  position: relative;
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
  background: radial-gradient(circle at 15% 20%, rgba(245, 64, 33, 0.16), transparent 45%),
              radial-gradient(circle at 90% 10%, rgba(86, 192, 224, 0.18), transparent 40%),
              var(--sf-white);
  overflow: hidden;
}

.sf-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.12;
}

.sf-hero h1 .accent {
  color: var(--sf-primary);
}

.sf-hero .lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--sf-dark-2);
  max-width: 560px;
}

.sf-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-trust {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: var(--sf-dark-2);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust i {
  color: var(--sf-primary);
}

/* ---------- Mockup: dashboard flotante ---------- */
.mockup-window {
  background: var(--sf-white);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.06);
  transform: rotate(1.2deg);
}

.mockup-topbar {
  background: var(--sf-dark);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mockup-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.mockup-topbar span:first-child {
  background: var(--sf-primary);
}

.mockup-topbar small {
  margin-left: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mockup-body {
  padding: 1.1rem;
  background: var(--sf-light);
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.stat-tile {
  background: var(--sf-white);
  border-radius: var(--sf-radius-sm);
  padding: 0.7rem 0.6rem;
  text-align: left;
  box-shadow: var(--sf-shadow-sm);
}

.stat-tile i {
  color: var(--sf-cyan);
  font-size: 0.95rem;
}

.stat-tile.is-warn i {
  color: var(--sf-warn);
}

.stat-tile strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-top: 0.25rem;
}

.stat-tile span {
  display: block;
  font-size: 0.68rem;
  color: var(--sf-dark-2);
  font-weight: 600;
}

.mockup-list {
  background: var(--sf-white);
  border-radius: var(--sf-radius-sm);
  box-shadow: var(--sf-shadow-sm);
  overflow: hidden;
}

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid var(--sf-light);
}

.mockup-row:last-child {
  border-bottom: none;
}

.mockup-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}

.mockup-row.is-ok .mockup-badge {
  background: rgba(33, 181, 106, 0.12);
  color: var(--sf-ok);
}

.mockup-row.is-warn .mockup-badge {
  background: rgba(245, 166, 35, 0.14);
  color: var(--sf-warn);
}

.mockup-row.is-bad .mockup-badge {
  background: rgba(229, 52, 74, 0.12);
  color: var(--sf-bad);
}

.hero-float-card {
  position: absolute;
  background: var(--sf-white);
  border-radius: var(--sf-radius-sm);
  box-shadow: var(--sf-shadow-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-float-card i {
  color: var(--sf-ok);
}

.hero-float-card.card-top {
  top: -18px;
  right: 18px;
  transform: rotate(-3deg);
}

.hero-float-card.card-bottom {
  bottom: -20px;
  left: -10px;
  transform: rotate(2deg);
}

/* ---------- Problema / Solución ---------- */
.problem-card {
  height: 100%;
  background: var(--sf-white);
  border: 1px solid var(--sf-light);
  border-radius: var(--sf-radius);
  padding: 1.6rem;
  transition: transform var(--sf-transition), box-shadow var(--sf-transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sf-shadow-sm);
}

.problem-card .icon-pain {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 52, 74, 0.1);
  color: var(--sf-bad);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.problem-card .icon-fix {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 181, 106, 0.1);
  color: var(--sf-ok);
  font-size: 1.1rem;
  margin: 0.9rem 0 0;
}

.problem-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.problem-card p {
  color: var(--sf-dark-2);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.problem-card .fix-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sf-ok);
}

/* ---------- Módulos ---------- */
.module-card {
  height: 100%;
  border-radius: var(--sf-radius);
  padding: 1.7rem;
  background: var(--sf-dark-2);
  color: var(--sf-light);
  transition: transform var(--sf-transition), box-shadow var(--sf-transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px -15px rgba(0, 0, 0, 0.45);
}

.module-card .icon-module {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-primary);
  color: var(--sf-white);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

.module-card h3 {
  color: var(--sf-white);
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.module-card p {
  color: var(--sf-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Cómo funciona ---------- */
.steps-wrap {
  position: relative;
}

.step-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.3rem 0;
  border-bottom: 1px dashed var(--sf-light);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sf-primary);
  color: var(--sf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.step-item p {
  color: var(--sf-dark-2);
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Portal cliente ---------- */
.portal-phone {
  max-width: 320px;
  margin: 0 auto;
  background: var(--sf-black);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--sf-shadow);
}

.portal-screen {
  background: var(--sf-light);
  border-radius: 20px;
  overflow: hidden;
}

.portal-screen-head {
  background: var(--sf-dark);
  color: var(--sf-white);
  padding: 1rem 1rem 1.3rem;
}

.portal-screen-head small {
  color: var(--sf-gray);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-screen-head strong {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.portal-cards {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.portal-card {
  background: var(--sf-white);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--sf-shadow-sm);
  border-left: 4px solid var(--sf-ok);
}

.portal-card.is-warn {
  border-left-color: var(--sf-warn);
}

.portal-card.is-bad {
  border-left-color: var(--sf-bad);
}

.portal-card strong {
  display: block;
  font-size: 0.86rem;
}

.portal-card span {
  font-size: 0.74rem;
  color: var(--sf-dark-2);
}

.portal-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.portal-benefit {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.portal-benefit i {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(86, 192, 224, 0.15);
  color: var(--sf-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-benefit h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.portal-benefit p {
  margin: 0;
  color: var(--sf-dark-2);
  font-size: 0.9rem;
}

/* ---------- Normativa ---------- */
.norm-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.norm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--sf-white);
  font-weight: 700;
  font-size: 0.85rem;
}

.norm-chip i {
  color: var(--sf-primary-light);
}

/* ---------- Placeholders de foto ---------- */
.photo-placeholder {
  position: relative;
  border-radius: var(--sf-radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sf-dark-2), var(--sf-dark));
  aspect-ratio: 4 / 3;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.photo-placeholder figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
  color: var(--sf-white);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- Audiencia ---------- */
.audience-card {
  text-align: center;
  padding: 2rem 1.4rem;
  border-radius: var(--sf-radius);
  background: var(--sf-white);
  border: 1px solid var(--sf-light);
  height: 100%;
}

.audience-card .icon-audience {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(245, 64, 33, 0.1);
  color: var(--sf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.audience-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.audience-card p {
  font-size: 0.88rem;
  color: var(--sf-dark-2);
  margin: 0;
}

/* ---------- Contacto ---------- */
.contact-card {
  background: var(--sf-white);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-control-sf {
  width: 100%;
  border: 1px solid var(--sf-light);
  border-radius: var(--sf-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.94rem;
  margin-bottom: 1rem;
  transition: border-color var(--sf-transition), box-shadow var(--sf-transition);
}

.form-control-sf:focus {
  outline: none;
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 3px rgba(245, 64, 33, 0.15);
}

label.form-label-sf {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sf-dark-2);
  margin-bottom: 0.35rem;
  display: block;
}

.form-feedback {
  display: none;
  border-radius: var(--sf-radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

.form-feedback.is-success {
  display: block;
  background: rgba(33, 181, 106, 0.12);
  color: #1a8f54;
}

.form-feedback.is-error {
  display: block;
  background: rgba(229, 52, 74, 0.12);
  color: var(--sf-bad);
}

.contact-side {
  color: var(--sf-light);
}

.contact-side .contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.contact-side .contact-line i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-primary-light);
  flex: 0 0 auto;
}

.share-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sf-white);
  transition: transform var(--sf-transition), background var(--sf-transition);
}

.share-btn:hover {
  transform: translateY(-3px);
  background: var(--sf-primary);
  color: var(--sf-white);
}

/* ---------- Footer ---------- */
.sf-footer {
  background: var(--sf-black);
  color: var(--sf-gray);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
}

.sf-footer .navbar-brand-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sf-white);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.sf-footer .navbar-brand-footer img {
  height: 30px;
}

.sf-footer a {
  color: var(--sf-gray);
}

.sf-footer a:hover {
  color: var(--sf-white);
}

.sf-footer hr {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 1.8rem 0 1.2rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--sf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.65);
  animation: sf-pulse 2.4s infinite;
}

.wa-float:hover {
  color: var(--sf-white);
}

@keyframes sf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Utilidades de animación en scroll ---------- */
.sf-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-float-card {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .mockup-stats {
    grid-template-columns: 1fr 1fr;
  }
  .sf-hero {
    text-align: left;
  }
  .contact-card {
    padding: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .mockup-stats {
    grid-template-columns: 1fr;
  }
  .wa-float {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    bottom: 16px;
    right: 16px;
  }
}
