/**
 * mm-brand-2026.css — Sistema de diseño Marcas Millonarias (rebrand 2026-07)
 * Fuente: docs/lanzamiento/MM-BRAND-GUIDE.md
 *
 * Usado por las landing pages de servicio: publicidad.html, paginas.html
 * No reemplaza design-system.css (paleta anterior, usada por LPs previas).
 */

:root {
  /* Paleta primaria */
  --color-navy:        #0A1628;
  --color-abyss:       #060D1A;
  --color-blue:        #1D6FF2;
  --color-cyan:        #38BEFF;

  /* Superficies */
  --color-white:       #FFFFFF;
  --color-gray-soft:   #F4F7FA;
  --color-slate:       #6B7280;
  --color-chrome:      #B8C5D6;
  --color-graphite:    #111827;

  /* Funcionales */
  --color-success:     #10B981;
  --color-danger:      #EF4444;
  --color-mapa-badge:  #F59E0B;

  /* Gradientes */
  --gradient-primary:  linear-gradient(135deg, #1D6FF2, #38BEFF);
  --gradient-dark:     linear-gradient(160deg, #0A1628, #1D3461, #1D6FF2);
  --gradient-overlay:  linear-gradient(160deg, rgba(10,22,40,0.6), rgba(10,22,40,0.85));
  --gradient-card:     linear-gradient(135deg, rgba(29,111,242,0.08), rgba(56,190,255,0.04));

  /* Tipografía */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  /* Espaciado */
  --space-xs:  4px;   --space-sm:  8px;   --space-md: 16px;  --space-lg: 24px;
  --space-xl: 32px;   --space-2xl: 48px;  --space-3xl: 64px; --space-4xl: 80px; --space-5xl: 120px;

  /* Radios */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-2xl: 24px; --radius-pill: 100px;

  /* Sombras */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-dark: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 4px 20px rgba(29,111,242,0.35);
  --shadow-cyan: 0 2px 12px rgba(56,190,255,0.25);

  /* Z-index */
  --z-card: 10; --z-overlay: 100; --z-modal: 200; --z-navbar: 300; --z-toast: 400;

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-navy);
  color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ── Línea de acento (firma visual de marca) ─────────────────────────── */
.accent-line {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* ── Texto con acento en gradiente ────────────────────────────────────── */
.text-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-base);
  border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--color-blue); color: var(--color-white); padding: 16px 32px;
}
.btn-primary:hover { background: #1557C7; box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: var(--color-slate); cursor: not-allowed; opacity: 0.5; transform: none; box-shadow: none; }
.btn-secondary {
  background: transparent; border: 1.5px solid var(--color-blue); color: var(--color-blue); padding: 14.5px 30.5px;
}
.btn-secondary:hover { background: rgba(29,111,242,0.08); }
.btn-full { width: 100%; }

/* ── Trust pill / badge ───────────────────────────────────────────────── */
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29,111,242,0.10); border: 1px solid rgba(29,111,242,0.30);
  color: var(--color-cyan); font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 6px 16px;
}
.trust-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Tarjetas ─────────────────────────────────────────────────────────── */
.card-dark {
  background: var(--color-graphite); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-dark);
  position: relative; overflow: hidden;
}
.card-light {
  background: var(--color-white); border: 1px solid #E5E7EB;
  border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-card); color: var(--color-graphite);
}
.card-featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); }

/* ── Navbar (minimal, sin links de salida — página de conversión) ───────── */
.navbar {
  background: rgba(10,22,40,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: var(--z-navbar);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--color-white); }
.navbar-logo img { width: 28px; height: 28px; object-fit: contain; }
@media (max-width: 640px) { .navbar { height: 56px; } }

/* ── Inputs / formulario ──────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-label { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--color-chrome); }
.input-dark, select.input-dark, textarea.input-dark {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 13px 16px; color: var(--color-white);
  font-family: var(--font-body); font-size: 16px; width: 100%; transition: var(--transition-fast);
  appearance: none;
}
select.input-dark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8C5D6' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
textarea.input-dark { resize: vertical; min-height: 88px; font-family: var(--font-body); }
.input-dark::placeholder { color: rgba(255,255,255,0.35); }
.input-dark:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(29,111,242,0.2); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.mm-form-error {
  display: none; font-size: 13px; color: var(--color-danger);
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 16px;
}
.mm-spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mm-form-success-inline, .mm-form-success { text-align: center; padding: 32px 8px; }
.mm-form-success-inline .mm-success-icon, .mm-form-success .success-icon { font-size: 2.75rem; margin-bottom: 16px; }
.mm-form-success-inline h3, .mm-form-success h3 { font-size: 1.3rem; color: var(--color-white); margin-bottom: 10px; }
.mm-form-success-inline p, .mm-form-success p { color: var(--color-chrome); font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.mm-form-success-inline .mm-success-muted, .success-muted { color: var(--color-slate); font-size: 13px; }
.form-micro { font-size: 12px; color: var(--color-slate); text-align: center; margin-top: 14px; }

/* ── Secciones ────────────────────────────────────────────────────────── */
.section { padding: var(--space-4xl) 0; position: relative; }
@media (max-width: 640px) { .section { padding: var(--space-3xl) 0; } }
.section-dark  { background: var(--color-navy); }
.section-abyss { background: var(--color-abyss); }
.section-light { background: var(--color-gray-soft); color: var(--color-graphite); }
.section-white { background: var(--color-white); color: var(--color-graphite); }
.section-gradient-dark { background: var(--gradient-dark); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-label {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-cyan); margin-bottom: 16px;
}
.section-light .section-label, .section-white .section-label { color: var(--color-blue); }
h2.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--color-white); margin-bottom: 16px; }
.section-light h2.section-title, .section-white h2.section-title { color: var(--color-graphite); }
.section-sub { font-size: 17px; color: var(--color-chrome); line-height: 1.75; }
.section-light .section-sub, .section-white .section-sub { color: var(--color-slate); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 var(--space-4xl); background: var(--gradient-overlay), var(--color-navy); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,111,242,0.22), transparent 70%);
  top: -260px; right: -180px; filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--color-white); margin: 20px 0 24px; }
.hero-h1 strong { font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--color-chrome); max-width: 620px; margin: 0 auto 36px; line-height: 1.7; }
.hero-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ── Listas con check ─────────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.6; }
.check-list .ico { flex-shrink: 0; font-size: 18px; line-height: 1.5; }

/* ── Grid de cards ────────────────────────────────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: 1fr; } }
.grid-cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 640px) { .grid-cards-2 { grid-template-columns: 1fr; } }

.feat-card .icon { font-size: 28px; margin-bottom: 16px; }
.feat-card h4 { font-size: 18px; color: var(--color-white); margin-bottom: 10px; font-weight: 600; }
.feat-card p { font-size: 15px; color: var(--color-chrome); line-height: 1.65; }

/* ── Prueba social ────────────────────────────────────────────────────── */
.testi-card { color: var(--color-graphite); }
.testi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.testi-name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.testi-tag { font-size: 13px; color: var(--color-slate); }
.testi-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.testi-metric { text-align: center; background: var(--color-gray-soft); border-radius: var(--radius-md); padding: 14px 8px; }
.testi-metric .num { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--color-blue); }
.testi-metric .lbl { font-size: 11px; color: var(--color-slate); text-transform: uppercase; letter-spacing: 0.04em; }
.testi-quote { font-size: 14.5px; line-height: 1.7; color: var(--color-graphite); font-style: italic; }

/* ── Tabla comparativa ────────────────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius-xl); }
.compare-table th, .compare-table td { padding: 18px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.compare-table thead th { font-family: var(--font-heading); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--color-graphite); color: var(--color-chrome); }
.compare-table thead th:last-child { color: var(--color-cyan); }
.compare-table tbody td:first-child { color: var(--color-slate); }
.compare-table tbody td:last-child { color: var(--color-white); font-weight: 500; }
.compare-table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 640px) { .compare-table th, .compare-table td { padding: 14px 12px; font-size: 13.5px; } }

/* ── Para quién es / no es ────────────────────────────────────────────── */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-card h3 { font-size: 18px; margin-bottom: 20px; }
.fit-card.fit-yes h3 { color: var(--color-success); }
.fit-card.fit-no h3 { color: var(--color-danger); }

/* ── Escenarios (LP2 sección problema) ────────────────────────────────── */
.scenario-card { text-align: center; }
.scenario-card .emoji { font-size: 2rem; margin-bottom: 16px; }
.scenario-card h4 { font-size: 17px; color: var(--color-white); margin-bottom: 12px; }
.scenario-card p { font-size: 14.5px; color: var(--color-chrome); line-height: 1.7; }

/* ── CTA final ────────────────────────────────────────────────────────── */
.cta-final { text-align: center; }
.form-card { max-width: 560px; margin: 0 auto; text-align: left; }

/* ── Footer minimal ───────────────────────────────────────────────────── */
.footer { padding: 40px 0; background: var(--color-abyss); text-align: center; }
.footer p { font-size: 13px; color: var(--color-slate); }

/* ── Páginas legales — contenido largo, tarjetas de lectura ───────────── */
.legal-hero { padding: 48px 0 40px; text-align: center; }
.legal-hero .meta-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.meta-pill { background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong, rgba(255,255,255,.14)); border-radius: var(--radius-pill); padding: 6px 16px; font-size: 12px; color: var(--color-chrome); }
.legal-card { background: var(--color-white); border: 1px solid #E5E7EB; border-radius: var(--radius-xl); padding: 32px 36px; color: var(--color-graphite); max-width: 760px; margin: 0 auto 24px; }
.legal-card h2 { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--color-navy); margin-bottom: 12px; margin-top: 0; }
.legal-card p, .legal-card li { font-size: 15px; color: var(--color-slate); line-height: 1.75; }
.legal-card ul { padding-left: 20px; margin-top: 8px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--color-blue); font-weight: 600; }
.legal-step { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.legal-step-num { background: rgba(29,111,242,0.1); color: var(--color-blue); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.legal-callout { background: rgba(29,111,242,0.06); border: 1px solid rgba(29,111,242,0.2); border-left: 3px solid var(--color-blue); border-radius: var(--radius-md); padding: 16px 20px; margin: 20px 0; }
.legal-callout p { color: var(--color-navy) !important; font-weight: 500; }
.legal-btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
