/* ════════════════════════════════════════════════════════════════
   TPVReady — Modulo CSS (páginas individuales de módulo)
   eXtremaNET Consultores Tecnológicos S.L.U.
   ════════════════════════════════════════════════════════════════ */

@import url('./landing.css');

/* ────────────────────────────────────────────────────────────────
   HERO de página de módulo
   ──────────────────────────────────────────────────────────────── */
.modulo-hero {
  position: relative;
  padding: 4rem 2rem 3rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.modulo-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.20) 100%);
  pointer-events: none;
}
.modulo-hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.modulo-hero > .modulo-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

/* Variantes de color del hero */
.modulo-hero.azul { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }
.modulo-hero.morado { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.modulo-hero.verde { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.modulo-hero.naranja { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.modulo-hero.rojo { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.modulo-hero.cyan { background: linear-gradient(135deg, #0891b2 0%, #155e75 100%); }
.modulo-hero.rosa { background: linear-gradient(135deg, #db2777 0%, #9d174d 100%); }
.modulo-hero.teal { background: linear-gradient(135deg, #0d9488 0%, #115e59 100%); }
.modulo-hero.indigo { background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); }
.modulo-hero.gris-oscuro { background: linear-gradient(135deg, #334155 0%, #0f172a 100%); }
.modulo-hero.ambar { background: linear-gradient(135deg, #d97706 0%, #92400e 100%); }
.modulo-hero.lima { background: linear-gradient(135deg, #65a30d 0%, #3f6212 100%); }

.modulo-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.modulo-breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.modulo-breadcrumb a:hover { border-bottom-color: #fff; }

.modulo-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modulo-hero-icon svg {
  width: 100%; height: 100%; stroke-width: 1.5;
}

.modulo-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.modulo-hero p.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto;
}

/* ────────────────────────────────────────────────────────────────
   Contenido principal del módulo
   ──────────────────────────────────────────────────────────────── */
.modulo-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.modulo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}
.modulo-section.invertida { direction: rtl; }
.modulo-section.invertida > * { direction: ltr; }

@media (max-width: 768px) {
  .modulo-section,
  .modulo-section.invertida { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
}

.modulo-section-texto h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.modulo-section-texto p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.modulo-bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.modulo-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-text);
}
.modulo-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--color-success-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

/* ────────────────────────────────────────────────────────────────
   Marco de imagen / placeholder
   ──────────────────────────────────────────────────────────────── */
.modulo-imagen {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #f1f5f9
}
.modulo-imagen img {
  width: 100%;
  height: 100%;
  
  display: block;
}

/* ────────────────────────────────────────────────────────────────
   CTA + módulos relacionados
   ──────────────────────────────────────────────────────────────── */
.modulo-cta {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 16px;
  margin: 3rem auto;
  max-width: 1100px;
}
.modulo-cta h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.modulo-cta p {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.modulo-cta .cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Relacionados — mini-tiles abajo */
.modulo-relacionados {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.modulo-relacionados h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.relacionados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.relacionados-grid .tile {
  min-height: 110px;
  padding: 0.9rem;
}
.relacionados-grid .tile .tile-icon { width: 32px; height: 32px; }
.relacionados-grid .tile .tile-title { font-size: 0.95rem; }
.relacionados-grid .tile .tile-desc { display: none; }



/* ── Tabla comparativa de módulos ── */
    .comparativa-modulos {
      max-width: 1000px;
      margin: 0 auto 3.5rem;
      padding: 0 1rem;
    }
    .comparativa-modulos h2 {
      text-align: center;
      font-size: clamp(1.5rem, 2.5vw, 2rem);
      font-weight: 700;
      color: var(--color-primary);
      margin-bottom: 0.5rem;
      letter-spacing: -0.02em;
    }
    .comparativa-sub {
      text-align: center;
      color: var(--color-muted);
      font-size: 0.95rem;
      max-width: 620px;
      margin: 0 auto 2rem;
    }
    .comparativa-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tabla-comparativa {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
      border: 1px solid var(--color-border);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      min-width: 560px;
    }
    .tabla-comparativa thead th {
      padding: 1rem 0.75rem;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--color-primary);
      text-align: center;
      background: #f9fafb;
      border-bottom: 2px solid var(--color-border);
    }
    .tabla-comparativa th.col-modulo {
      text-align: left;
      padding-left: 1.25rem;
    }
    .tabla-comparativa td {
      padding: 0.8rem 0.75rem;
      text-align: center;
      font-size: 0.9rem;
      border-bottom: 1px solid #f1f5f9;
    }
    .tabla-comparativa tbody tr:last-child td { border-bottom: none; }
    .tabla-comparativa td.col-modulo {
      text-align: left;
      padding-left: 1.25rem;
      font-weight: 600;
      color: var(--color-text);
    }
    .tabla-comparativa .si { color: #059669; font-weight: 700; font-size: 1.05rem; }
    .tabla-comparativa .no { color: #cbd5e1; font-weight: 600; }
    .tabla-comparativa .col-destacada { background: var(--color-accent-light, #eff6ff); }
    .tabla-comparativa thead th.col-destacada { background: var(--color-accent-light, #eff6ff); }