/* ===========================================================
   RICS — Landing Page (modern)
   Diseño plano sin gradientes, con grid sutil y screenshot real.
   Convive con brand-pages.css (header, footer y nav siguen igual).
   =========================================================== */

body.landing-page {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

body.landing-page .brand-header {
  background: rgba(4, 44, 83, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.landing-page .brand-nav a,
body.landing-page .logo-link {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

body.landing-page .brand-footer {
  font-family: "Inter", system-ui, sans-serif;
}

/* ---------------------- LANDING HEADER (solo logo) ---------------------- */
.landing-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #0b1d3a;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.landing-logo:hover {
  opacity: 0.75;
}

.landing-logo img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .landing-header {
    padding: 1rem 1.25rem;
  }
  .landing-logo {
    font-size: 1.25rem;
  }
  .landing-logo img {
    height: 48px;
    max-width: 160px;
  }
  .landing-logo span {
    display: none;
  }
}

/* ---------------------- HERO ---------------------- */
.landing-hero {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
  padding: 1rem 1.5rem 3.5rem;
  border-bottom: 1px solid #d6deea;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'><path d='M48 0H0V48' fill='none' stroke='%230b1d3a' stroke-opacity='0.07' stroke-width='1'/></svg>");
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin: 0 0 1rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(24, 95, 165, 0.08);
  color: #185FA5;
  border: 1px solid rgba(24, 95, 165, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #0b1d3a;
  animation: fadeUp 0.7s 0.05s ease both;
}

.hero-title .grad {
  color: #185FA5;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
  max-width: 560px;
  margin: 0 0 2rem;
  animation: fadeUp 0.7s 0.12s ease both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeUp 0.7s 0.18s ease both;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.btn-cta.primary {
  background: #185FA5;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(24, 95, 165, 0.45);
}

.btn-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(24, 95, 165, 0.55);
}

.btn-cta.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: #0b1d3a;
  border-color: rgba(11, 29, 58, 0.12);
  backdrop-filter: blur(6px);
}

.btn-cta.ghost:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-cta .material-icons {
  font-size: 18px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2.25rem;
  font-size: 0.82rem;
  color: #64748b;
  animation: fadeUp 0.7s 0.25s ease both;
}

.hero-trust .avatars {
  display: flex;
}

.hero-trust .avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: #185FA5;
}

.hero-trust .avatars span:nth-child(2) { background: #3B6D11; }
.hero-trust .avatars span:nth-child(3) { background: #993556; }

/* Hero visual (screenshot del producto) */
.hero-visual {
  position: relative;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-screenshot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.08);
  background: #fff;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
  z-index: 2;
}

.hero-screenshot:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.floating-pill {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  box-shadow: 0 18px 35px -15px rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0b1d3a;
  z-index: 3;
  animation: floatPill 6s ease-in-out infinite;
}

.floating-pill .material-icons {
  font-size: 20px;
  padding: 0.35rem;
  border-radius: 8px;
}

.fp-top {
  top: -18px;
  left: -22px;
}
.fp-top .material-icons {
  background: #dcfce7;
  color: #16a34a;
}

.fp-bottom {
  bottom: -22px;
  right: -18px;
  animation-delay: -3s;
}
.fp-bottom .material-icons {
  background: #ede9fe;
  color: #534AB7;
}

@keyframes floatPill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------- LOGOS / TRUST STRIP ---------------------- */
.trust-strip {
  background: #0b1d3a;
  border-top: none;
  border-bottom: none;
  padding: 2.25rem 1.5rem;
}

.trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.trust-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.trust-logos span {
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.trust-logos span:hover {
  opacity: 1;
  color: #ffffff;
}

/* ---------------------- SECTION BASE ---------------------- */
.landing-section {
  padding: 4.5rem 1.5rem;
}

.landing-section.alt {
  background: #eef2f7;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(24, 95, 165, 0.08);
  color: #185FA5;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0b1d3a;
  margin: 0 0 0.85rem;
  line-height: 1.15;
}

.section-lead {
  font-size: 1.05rem;
  color: #475569;
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 3rem;
}

/* ---------------------- STATS ---------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #185FA5;
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat-card:nth-child(2) { border-left-color: #3B6D11; }
.stat-card:nth-child(2) .stat-num { color: #3B6D11; }
.stat-card:nth-child(3) { border-left-color: #BA7517; }
.stat-card:nth-child(3) .stat-num { color: #BA7517; }
.stat-card:nth-child(4) { border-left-color: #534AB7; }
.stat-card:nth-child(4) .stat-num { color: #534AB7; }

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px -20px rgba(15, 23, 42, 0.25);
}

.stat-num {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #185FA5;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 0.35rem;
}

/* ---------------------- MODULES GRID ---------------------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.module-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--accent, #185FA5);
  border-radius: 14px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent, #185FA5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -25px rgba(15, 23, 42, 0.25);
  border-color: rgba(83, 74, 183, 0.25);
}

.module-card:hover::after {
  transform: scaleX(1);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft, #eef2ff);
  color: var(--accent, #185FA5);
}

.module-icon .material-icons {
  font-size: 26px;
}

.module-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1d3a;
  margin: 0;
}

.module-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.module-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #185FA5);
  margin-top: 0.5rem;
}

.module-link .material-icons {
  font-size: 16px;
  transition: transform 0.2s;
}

.module-card:hover .module-link .material-icons {
  transform: translateX(3px);
}

/* ---------------------- PROCESS / TIMELINE ---------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #cbd5e1;
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 1rem 1.5rem;
}

.landing-section.alt .process-step {
  background: #fff;
  border-color: #d6deea;
}

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #185FA5;
  color: #185FA5;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px -8px rgba(24, 95, 165, 0.4);
}

.process-step h4 {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #0b1d3a;
}

.process-step p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ---------------------- CTA BANNER ---------------------- */
.cta-banner {
  background: #0b1d3a;
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-banner h3 {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
}

.cta-banner p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.85;
  line-height: 1.55;
}

.cta-banner .btn-cta.primary {
  background: #fff;
  color: #185FA5;
  box-shadow: 0 18px 30px -15px rgba(0, 0, 0, 0.4);
}

.cta-banner .btn-cta.primary:hover {
  background: #f8fafc;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

/* ---------------------- AI POWERED SECTION ---------------------- */
.hero-badge.ai {
  background: rgba(83, 74, 183, 0.12);
  color: #534AB7;
  border-color: rgba(83, 74, 183, 0.25);
}

.hero-badge.ai .material-icons {
  color: #534AB7;
}

.ai-section {
  position: relative;
  padding: 4.5rem 1.5rem;
  background: #0b1d3a;
  color: #e2e8f0;
  overflow: hidden;
}

.ai-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.ai-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 1.25rem;
}

.ai-eyebrow .material-icons {
  font-size: 16px;
  color: #c4b5fd;
}

.ai-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
}

.ai-grad {
  color: #c4b5fd;
}

.ai-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 2rem;
  max-width: 540px;
}

.ai-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ai-benefit {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.ai-benefit:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(196, 181, 253, 0.35);
  transform: translateY(-3px);
}

.ai-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(83, 74, 183, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c4b5fd;
}

.ai-icon .material-icons {
  font-size: 20px;
}

.ai-benefit h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}

.ai-benefit p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.ai-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-card {
  position: relative;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
  z-index: 2;
  font-family: "Inter", sans-serif;
}

.ai-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-card-head .material-icons {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #534AB7;
  color: #fff;
  border-radius: 10px;
  font-size: 22px;
}

.ai-card-head strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.ai-card-head small {
  font-size: 0.78rem;
  color: #94a3b8;
}

.ai-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.ai-line .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.ai-line .check {
  margin-left: auto;
  color: #22c55e;
  font-weight: 700;
}

.ai-line.typing {
  color: #fff;
}

.ai-line.typing .dot {
  background: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.25);
  animation: blinkDot 1.2s ease-in-out infinite;
}

.caret {
  margin-left: auto;
  color: #c4b5fd;
  animation: blinkDot 1s steps(1) infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (max-width: 980px) {
  .ai-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ai-visual { order: 2; }
  .ai-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ai-section { padding: 4rem 1.25rem; }
  .ai-orb { width: 220px; height: 220px; }
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .cta-banner { grid-template-columns: 1fr; text-align: left; padding: 2.5rem 1.75rem; }
}

@media (max-width: 600px) {
  .landing-hero { padding: 4rem 1.25rem 3.5rem; }
  .landing-section { padding: 4rem 1.25rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .floating-pill { display: none; }
}
