/* ==========================================================================
   Fixa — Modern Stylesheet
   Sistema de design tokens + componentes para el sitio rediseñado
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --color-primary: #DA4B82;
  --color-primary-dark: #B83968;
  --color-primary-light: #F0B5CD;
  --color-secondary: #69418E;
  --color-secondary-dark: #4E2F6C;
  --color-secondary-light: #A38AC2;
  --color-accent: #A74687;

  /* Neutros */
  --color-ink: #1A1525;
  --color-text: #2D2438;
  --color-text-muted: #6B6478;
  --color-text-soft: #9B95A8;
  --color-line: #E8E4EE;
  --color-line-soft: #F2F0F5;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAF9FC;
  --color-bg-dark: #1A1525;

  /* Estado */
  --color-success: #1F9D6D;
  --color-warning: #E8A93C;
  --color-danger: #D64545;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', sans-serif;

  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: 1.5rem;      /* 24 */
  --fs-2xl: 2rem;       /* 32 */
  --fs-3xl: 2.5rem;     /* 40 */
  --fs-4xl: 3.25rem;    /* 52 */
  --fs-5xl: 4rem;       /* 64 */

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 72px;

  /* Forma */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(26, 21, 37, 0.05);
  --shadow-sm: 0 2px 8px rgba(26, 21, 37, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 21, 37, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 21, 37, 0.12);
  --shadow-glow: 0 8px 32px rgba(218, 75, 130, 0.25);

  /* Movimiento */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;

  /* Capas */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* --- Reset moderno ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--color-primary-dark);
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

p {
  line-height: var(--lh-base);
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* --- Layout primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-20);
}

.section-sm {
  padding-block: var(--space-12);
}

.section-lg {
  padding-block: var(--space-24);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-bg-dark);
  color: #E8E4EE;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.section-lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-base);
}

/* --- Grid utilities ------------------------------------------------------ */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* --- Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  line-height: 1;
  border-radius: var(--radius-full);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn .material-symbols-outlined {
  font-size: 20px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
}

.btn-ghost:hover {
  background: var(--color-line-soft);
  color: var(--color-ink);
}

.btn-on-dark {
  background: #fff;
  color: var(--color-ink);
}

.btn-on-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-md);
}

/* --- Header / Navegación ------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--color-line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: var(--space-2) 0;
  position: relative;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav .has-dropdown {
  position: relative;
}

.site-nav .dropdown {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base) var(--ease);
}

.site-nav .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-nav .dropdown a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-medium);
}

.site-nav .dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { padding: var(--space-4); border-bottom: 1px solid var(--color-line-soft); }
  .site-nav .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    padding-left: var(--space-4);
  }
  .menu-toggle { display: inline-flex; }
}

/* Spacer para que el contenido no quede tapado por el header fijo */
.site-main {
  padding-top: var(--header-h);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-24) var(--space-20);
  background:
    radial-gradient(circle at 15% 20%, rgba(218, 75, 130, 0.10), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(105, 65, 142, 0.10), transparent 45%),
    var(--color-bg);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-6);
}

/* Intro del hero del home: tag "Nuevo" + nombre del producto destacado */
.hero__intro {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s var(--ease) infinite;
}

.hero__intro-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero__title {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Variante para logos / ilustraciones con fondo transparente —
   sin sombra ni radius, con padding para que respire */
.hero__visual--illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.hero__visual--illustration img {
  border-radius: 0;
  box-shadow: none;
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .hero__visual--illustration { padding: var(--space-4); }
}

/* --- Hero showcase: mockup de verificación del padrón ----------------- */
.hero__showcase {
  position: relative;
  min-height: 420px;
  padding: var(--space-8) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  width: min(360px, 100%);
  border: 1px solid var(--color-line);
  animation: showcase-in 600ms var(--ease) both;
}

.showcase-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.showcase-card__head .material-symbols-outlined {
  font-size: 32px;
  color: var(--color-secondary);
  background: rgba(105, 65, 142, 0.1);
  padding: 8px;
  border-radius: var(--radius-md);
}

.showcase-card__head strong {
  display: block;
  font-size: var(--fs-md);
  color: var(--color-text);
}

.showcase-card__head small {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.showcase-card__bar {
  height: 8px;
  background: var(--color-line-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.showcase-card__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  animation: showcase-fill 1.6s var(--ease) 300ms forwards;
}

.showcase-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* Variantes de contenido para showcase-card */

/* Monto destacado (Mutual Home) */
.showcase-card__amount {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-3);
}

/* Grid de KPIs (Mutual Core) */
.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-line-soft);
  padding-block-start: var(--space-4);
}

.showcase-stat strong {
  display: block;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.showcase-stat small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.showcase-card__check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-success);
  font-weight: var(--fw-semi);
}

.showcase-card__check .material-symbols-outlined {
  font-size: 18px;
}

/* Pills flotantes alrededor de la card central */
.showcase-pill {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  white-space: nowrap;
  animation: showcase-in 700ms var(--ease) both;
}

.showcase-pill strong {
  display: block;
  color: var(--color-text);
  font-size: var(--fs-sm);
}

.showcase-pill small {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
}

.showcase-pill .material-symbols-outlined {
  font-size: 22px;
  flex-shrink: 0;
}

.showcase-pill--ok .material-symbols-outlined {
  color: var(--color-success);
}

.showcase-pill--alert .material-symbols-outlined {
  color: var(--color-warning);
  background: rgba(232, 169, 60, 0.15);
  border-radius: var(--radius-full);
  padding: 2px;
}

.showcase-pill--top    { top:  6%;  left: 4%;  animation-delay: 200ms; }
.showcase-pill--right  { top:  30%; right: 0;  animation-delay: 500ms; }
.showcase-pill--bottom { bottom: 6%; right: 8%; animation-delay: 800ms; }
.showcase-pill--left   { bottom: 22%; left: 0;  animation-delay: 1100ms; }

@keyframes showcase-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes showcase-fill {
  to { width: 100%; }
}

@media (max-width: 900px) {
  .hero__showcase { min-height: 360px; }
  .showcase-pill--top    { top: 0;       left: 0; }
  .showcase-pill--right  { top: 25%;     right: 0; }
  .showcase-pill--bottom { bottom: 0;    right: 0; }
  .showcase-pill--left   { bottom: 25%;  left: 0; }
}

@media (max-width: 600px) {
  .hero__showcase { padding: var(--space-4) 0; }
  .showcase-pill { font-size: var(--fs-xs); padding: var(--space-2) var(--space-3); }
  .showcase-pill .material-symbols-outlined { font-size: 18px; }
}

@media (max-width: 600px) {
  .hero { padding-block: var(--space-16) var(--space-12); }
  .hero__title { font-size: var(--fs-3xl); }
}

/* --- Cards de producto -------------------------------------------------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: all var(--t-base) var(--ease);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card__featured {
  background: linear-gradient(135deg, #2D1B3D 0%, #1A1525 100%);
  color: #E8E4EE;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.product-card__featured h3 {
  color: #fff;
}

.product-card__featured .product-card__desc {
  color: rgba(232, 228, 238, 0.75);
}

.product-card__featured .product-card__feature {
  color: rgba(232, 228, 238, 0.85);
}

.product-card__featured .product-card__feature .material-symbols-outlined {
  color: var(--color-primary);
}

.product-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.product-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(218, 75, 130, 0.10);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.product-card__featured .product-card__icon {
  background: rgba(218, 75, 130, 0.20);
}

.product-card__icon .material-symbols-outlined {
  font-size: 28px;
}

.product-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.product-card__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.product-card__feature .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--fw-semi);
  margin-top: auto;
}

.product-card__cta:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.product-card__cta .material-symbols-outlined {
  font-size: 20px;
  transition: transform var(--t-fast) var(--ease);
}

/* --- Cards genéricas (módulos, beneficios) ------------------------------- */
.feature-card {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  transition: all var(--t-base) var(--ease);
}

.feature-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(105, 65, 142, 0.10);
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.feature-card__icon .material-symbols-outlined {
  font-size: 24px;
}

.feature-card h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* --- Tabla comparación --------------------------------------------------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}

.compare-table th {
  background: var(--color-bg-alt);
  font-weight: var(--fw-semi);
  color: var(--color-ink);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table td {
  font-size: var(--fs-sm);
}

.compare-table .col-bad {
  color: var(--color-text-muted);
}

.compare-table .col-good {
  color: var(--color-ink);
  font-weight: var(--fw-medium);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 700px) {
  .compare-table th,
  .compare-table td {
    padding: var(--space-3);
    font-size: var(--fs-xs);
  }
}

/* --- Pasos / Timeline ---------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  counter-increment: step;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}

.step__num::before {
  content: counter(step);
}

.step h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* --- CTA banner ---------------------------------------------------------- */
.cta-banner {
  position: relative;
  padding: var(--space-16) var(--space-8);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-md);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-inline: auto;
  position: relative;
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* --- Lista de checks ----------------------------------------------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-base);
}

.check-list .material-symbols-outlined {
  font-size: 22px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* --- Stats --------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
}

.stat__num {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Tarjetas de noticia ------------------------------------------------- */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}

.news-card__image .material-symbols-outlined {
  font-size: 64px;
}

.news-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card__date {
  font-size: var(--fs-xs);
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.news-card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
  color: var(--color-ink);
}

.news-card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--color-primary);
}

.news-card__link:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.news-card__link .material-symbols-outlined {
  font-size: 18px;
  transition: transform var(--t-fast) var(--ease);
}

/* --- Logos / clientes ---------------------------------------------------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-8);
  align-items: center;
  justify-items: center;
}

.logos img {
  max-height: 56px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--t-base) var(--ease);
}

.logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
}

/* --- Contacto ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 880px;
  margin-inline: auto;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  text-align: center;
  padding: var(--space-8);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  transition: all var(--t-base) var(--ease);
}

.contact-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(218, 75, 130, 0.10);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.contact-card__icon .material-symbols-outlined {
  font-size: 28px;
}

.contact-card h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-2);
}

.contact-card a {
  color: var(--color-text);
  font-size: var(--fs-sm);
}

.contact-card a:hover {
  color: var(--color-primary);
}

/* Layout: solo form, centrado */
.contact-layout {
  max-width: 720px;
  margin: 0 auto;
}

/* Form */
.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (max-width: 600px) {
  .contact-form { padding: var(--space-6); }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .form-row--2 { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.form-input {
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(218, 75, 130, 0.15);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--color-danger);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6478' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--lh-base);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.form-actions .btn {
  align-self: flex-start;
}

@media (max-width: 600px) {
  .form-actions .btn { align-self: stretch; justify-content: center; }
}

.form-legal {
  font-size: var(--fs-xs);
  color: var(--color-text-soft);
  line-height: 1.5;
}

.form-legal a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.form-legal a:hover {
  color: var(--color-primary);
}

#cf-submit.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.form-feedback {
  font-size: var(--fs-sm);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-feedback.is-loading,
.form-feedback.is-success,
.form-feedback.is-error {
  display: block;
}

.form-feedback.is-loading {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-line);
}

.form-feedback.is-success {
  background: rgba(31, 157, 109, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(31, 157, 109, 0.3);
}

.form-feedback.is-error {
  background: rgba(214, 69, 69, 0.08);
  color: var(--color-danger);
  border: 1px solid rgba(214, 69, 69, 0.3);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(232, 228, 238, 0.7);
  padding-block: var(--space-16) var(--space-6);
  font-size: var(--fs-sm);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (max-width: 800px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 500px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

.site-footer__brand img {
  height: 32px;
  margin-bottom: var(--space-4);
}

.site-footer__brand p {
  max-width: 320px;
  color: rgba(232, 228, 238, 0.6);
}

.site-footer h5 {
  color: #fff;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer a {
  color: rgba(232, 228, 238, 0.7);
}

.site-footer a:hover {
  color: var(--color-primary);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.social {
  display: flex;
  gap: var(--space-3);
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  color: rgba(232, 228, 238, 0.8);
  transition: all var(--t-fast) var(--ease);
}

.social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.social .material-symbols-outlined { font-size: 20px; }

/* --- Article (para páginas de noticias) --------------------------------- */
.article {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-block: var(--space-12);
}

.article__header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-line);
}

.article__category {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.article__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.article__meta {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.article__body {
  font-size: var(--fs-md);
  line-height: 1.7;
}

.article__body p,
.article__body ul,
.article__body ol,
.article__body blockquote,
.article__body h2,
.article__body h3 {
  margin-bottom: var(--space-5);
}

.article__body h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--space-10);
}

.article__body h3 {
  font-size: var(--fs-xl);
  margin-top: var(--space-8);
}

.article__body ul,
.article__body ol {
  padding-left: var(--space-6);
}

.article__body ul li,
.article__body ol li {
  margin-bottom: var(--space-2);
}

.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }

.article__body blockquote {
  padding: var(--space-4) var(--space-6);
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--color-text);
}

.article__body strong { color: var(--color-ink); }

/* --- Animaciones de entrada ---------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utilidades ---------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Esconder en mobile/desktop */
@media (max-width: 700px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 701px) {
  .show-mobile { display: none !important; }
}
