/* Landing pública (welcome y /agencias). Antes estaba en línea en welcome.blade.php. */

:root {
    --cm-black:   #30354a;
    --cm-white:   #FFFFFF;
    --cm-paper:   #f4f5f8;
    --cm-n-700:   #444b64;
    --cm-n-600:   #596078;
    --cm-n-500:   #717991;
    --cm-n-300:   #c8cedc;
    --cm-n-200:   #e5e8ef;
    --cm-n-100:   #f0f2f7;
    --cm-primary:       #5b5fc7;
    --cm-primary-hover: #484cae;
    --cm-primary-soft:  #eeeffc;
    --cm-green:   #1f9d6b;
    --cm-amber:   #b87514;
    --shadow-1: 0 2px 8px rgba(36, 44, 76, 0.04);
    --shadow-2: 0 8px 28px rgba(36, 44, 76, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cm-white);
    color: var(--cm-black);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.container--narrow { max-width: 760px; }

/* ---------- Header ---------- */

header.site {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cm-n-200);
}

header.site .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}

header.site .wordmark {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--cm-black);
    text-decoration: none;
    white-space: nowrap;
}

nav.main {
    display: flex;
    gap: 26px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cm-n-600);
}

nav.main a { text-decoration: none; }
nav.main a:hover { color: var(--cm-black); }

header.site .actions { display: flex; align-items: center; gap: 10px; }

/* Menú del móvil: el botón solo aparece por debajo de 900 px. */
.menu-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--cm-n-200); border-radius: 8px; background: #fff; color: var(--cm-black); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }
nav.main .nav-login { display: none; }

/* Foco visible con teclado en toda la landing. */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cm-primary); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--cm-primary); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.contact-sent { margin-top: 24px; }

/* ---------- Botones ---------- */

.btn {
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn-primary { background: var(--cm-primary); color: var(--cm-white); }
.btn-primary:hover { background: var(--cm-primary-hover); }

.btn-ghost {
    background: transparent;
    color: var(--cm-black);
    border: 1px solid var(--cm-n-300);
}
.btn-ghost:hover { background: var(--cm-n-100); }

.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------- Secciones ---------- */

section { padding: 84px 0; }
section.alt { background: var(--cm-paper); }
section.tight { padding: 64px 0; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cm-primary);
    margin: 0 0 14px;
}

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.section-head p {
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--cm-n-600);
    margin: 0;
}

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    padding: 88px 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--cm-primary-soft);
    color: var(--cm-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.pill svg { width: 15px; height: 15px; flex: none; }

.hero h1 {
    font-size: 46px;
    line-height: 1.12;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: 18px;
    color: var(--cm-n-600);
    margin: 0 auto 32px;
    line-height: 1.6;
    max-width: 620px;
}

.hero .actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero .microcopy {
    font-size: 13.5px;
    color: var(--cm-n-500);
    margin: 0;
}

.hero-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 56px auto 0;
    padding: 22px 0 64px;
    border-top: 1px solid var(--cm-n-200);
    max-width: 900px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cm-n-600);
}

.hero-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-strip svg { width: 16px; height: 16px; color: var(--cm-green); flex: none; }

/* ---------- Funcionalidades ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature {
    background: var(--cm-white);
    border: 1px solid var(--cm-n-200);
    border-radius: 14px;
    padding: 26px;
    box-shadow: var(--shadow-1);
}

.feature .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--cm-primary-soft);
    color: var(--cm-primary);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.feature .icon svg { width: 20px; height: 20px; }

.feature h3 { font-size: 16px; margin: 0 0 7px; font-weight: 600; }
.feature p { font-size: 14.5px; color: var(--cm-n-600); margin: 0; line-height: 1.55; }

/* ---------- Bloques detallados ---------- */

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
}

.split + .split { margin-top: 84px; }
.split.reverse .split-text { order: 2; }

.split-text h3 {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.split-text > p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--cm-n-600);
    margin: 0 0 20px;
}

.checklist { list-style: none; margin: 0; padding: 0; }

.checklist li {
    display: flex;
    gap: 11px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--cm-n-700);
    padding: 7px 0;
}

.checklist svg { width: 18px; height: 18px; color: var(--cm-primary); flex: none; margin-top: 2px; }

/* ---------- Mockups ---------- */

.mock {
    background: var(--cm-white);
    border: 1px solid var(--cm-n-200);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cm-n-200);
    background: var(--cm-n-100);
}

.mock-bar i {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--cm-n-300); display: block;
}

.mock-bar em {
    margin-left: 10px;
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    color: var(--cm-n-500);
}

.mock-body { padding: 18px; display: grid; gap: 12px; }

.mock-row {
    border: 1px solid var(--cm-n-200);
    border-radius: 10px;
    padding: 14px;
}

.mock-row .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mock-row .who { font-size: 13.5px; font-weight: 600; }
.mock-row .stars { font-size: 13px; color: #e8a33d; letter-spacing: 1px; }
.mock-row .txt { font-size: 13px; color: var(--cm-n-600); line-height: 1.5; margin: 0 0 10px; }

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--cm-n-100);
    color: var(--cm-n-600);
    margin: 0 6px 0 0;
}

.tag.ai { background: var(--cm-primary-soft); color: var(--cm-primary); }
.tag.neg { background: #fdeceb; color: #c0392b; }
.tag.pos { background: #e7f6ef; color: var(--cm-green); }

.mock-reply {
    border-left: 3px solid var(--cm-primary);
    background: var(--cm-primary-soft);
    border-radius: 0 8px 8px 0;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--cm-n-700);
    margin-top: 10px;
}

/* ---------- Pasos ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step {
    background: var(--cm-white);
    border: 1px solid var(--cm-n-200);
    border-radius: 14px;
    padding: 24px;
}

.step .num {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--cm-black);
    color: var(--cm-white);
    display: grid; place-items: center;
    font-size: 13px; font-weight: 700;
    margin-bottom: 14px;
}

.step h3 { font-size: 15.5px; margin: 0 0 6px; font-weight: 600; }
.step p { font-size: 14px; color: var(--cm-n-600); margin: 0; line-height: 1.55; }

/* ---------- Para quién ---------- */

.audience {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.audience-card {
    border: 1px solid var(--cm-n-200);
    border-radius: 14px;
    padding: 26px;
    background: var(--cm-white);
}

.audience-card h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 600; }
.audience-card p { font-size: 14.5px; color: var(--cm-n-600); margin: 0; line-height: 1.55; }

/* ---------- Planes ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.plan {
    background: var(--cm-white);
    border: 1px solid var(--cm-n-200);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-1);
}

.plan.featured {
    border-color: var(--cm-primary);
    box-shadow: var(--shadow-2);
    position: relative;
}

.plan .badge {
    position: absolute;
    top: -11px; left: 28px;
    background: var(--cm-primary);
    color: var(--cm-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
}

.plan h3 { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.plan .for { font-size: 13.5px; color: var(--cm-n-500); margin: 0 0 16px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 20px; }
.plan .price strong { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--cm-n-900); line-height: 1; }
.plan .price span { font-size: 14px; color: var(--cm-n-500); }

.plan ul { list-style: none; margin: 0 0 24px; padding: 0; }

.plan li {
    display: flex;
    gap: 10px;
    font-size: 14.5px;
    color: var(--cm-n-700);
    padding: 8px 0;
    border-top: 1px solid var(--cm-n-100);
    line-height: 1.45;
}

.plan li:first-child { border-top: 0; }
.plan li svg { width: 17px; height: 17px; color: var(--cm-primary); flex: none; margin-top: 2px; }
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--cm-n-200); }

.faq details {
    border-bottom: 1px solid var(--cm-n-200);
    padding: 20px 0;
}

.faq summary {
    font-size: 16.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--cm-n-500);
    line-height: 1;
    flex: none;
}

.faq details[open] summary::after { content: '−'; }

.faq p {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--cm-n-600);
    margin: 12px 0 0;
    padding-right: 42px;
}

/* ---------- CTA final ---------- */

.cta-final {
    background: var(--cm-black);
    border-radius: 18px;
    padding: 64px 40px;
    text-align: center;
    color: var(--cm-white);
}

.cta-final h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.cta-final p {
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 auto 30px;
    max-width: 540px;
    line-height: 1.6;
}

.cta-final .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.cta-final .btn-ghost {
    color: var(--cm-white);
    border-color: rgba(255, 255, 255, 0.28);
}
.cta-final .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Footer ---------- */

footer.site {
    border-top: 1px solid var(--cm-n-200);
    padding: 32px 0;
    margin-top: 84px;
}

footer.site .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--cm-n-500);
}

footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { text-decoration: none; }
footer.site .legal-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cm-n-100); font-size: 12.5px; color: var(--cm-n-500); }
footer.site .legal-links nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a:hover { color: var(--cm-black); }

/* ---------- Tarjetas NFC ---------- */

.nfc-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
}

.nfc-card {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 85.6 / 54;
    padding: 26px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2b2f6b 0%, #5b5fc7 100%);
    color: var(--cm-white);
    box-shadow: 0 24px 50px rgba(43, 47, 107, 0.35);
    transform: rotate(-5deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nfc-card .nfc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.nfc-card .nfc-title { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 0; max-width: 220px; }
.nfc-card .nfc-waves { width: 38px; height: 38px; opacity: 0.9; }
.nfc-card .nfc-stars { color: #fbbc04; font-size: 20px; letter-spacing: 3px; }
.nfc-card .nfc-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: 0.9; }
.nfc-card .nfc-g { width: 30px; height: 30px; padding: 5px; border-radius: 999px; background: var(--cm-white); }

.nfc-bubble {
    position: absolute;
    right: 4%;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--cm-white);
    border: 1px solid var(--cm-n-200);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    font-size: 13.5px;
    color: var(--cm-n-700);
}

.nfc-bubble strong { display: block; color: var(--cm-black); font-size: 14px; }
.nfc-bubble .nfc-bubble-stars { color: #fbbc04; letter-spacing: 1px; }

.nfc-sent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 26px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #e8f6f1;
    color: #0f6b52;
    font-size: 15px;
    line-height: 1.5;
}

.nfc-sent svg { width: 22px; height: 22px; flex: none; }

.nfc-dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(36, 44, 76, 0.28);
    color: var(--cm-black);
}

.nfc-dialog::backdrop { background: rgba(21, 25, 43, 0.55); }

.nfc-form { padding: 28px; display: grid; gap: 14px; }
.nfc-form header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.nfc-form h3 { margin: 0; font-size: 21px; font-weight: 700; }
.nfc-form header p { margin: 4px 0 0; font-size: 14.5px; color: var(--cm-n-600); line-height: 1.5; }

.nfc-close {
    flex: none;
    width: 34px; height: 34px;
    border: 0; border-radius: 999px;
    background: var(--cm-n-100);
    color: var(--cm-n-700);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.nfc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.nfc-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cm-n-700); }
.nfc-field small { font-weight: 400; color: var(--cm-n-500); }

.nfc-field input,
.nfc-field select,
.nfc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--cm-n-300);
    border-radius: 10px;
    background: var(--cm-white);
    font: inherit;
    font-weight: 400;
    font-size: 15px;
    color: var(--cm-black);
}

.nfc-field textarea { resize: vertical; min-height: 84px; }

.nfc-field input:focus,
.nfc-field select:focus,
.nfc-field textarea:focus { outline: 2px solid var(--cm-primary); outline-offset: 1px; border-color: var(--cm-primary); }

.nfc-error { font-size: 13px; font-weight: 500; color: #b91c1c; }

.nfc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--cm-n-600); }
.nfc-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--cm-primary); }

.nfc-consent a, .nfc-legal a { color: var(--cm-primary); }
.nfc-legal { margin: 0; font-size: 12px; line-height: 1.5; color: var(--cm-n-500); }

.nfc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features, .audience, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .split.reverse .split-text { order: 0; }
    nav.main { display: none; }
    .menu-toggle { display: grid; }
    header.site.is-open nav.main { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 24px 16px; background: #fff; border-bottom: 1px solid var(--cm-n-200); box-shadow: 0 12px 24px rgba(36, 44, 76, .08); }
    header.site.is-open nav.main a { padding: 12px 0; border-bottom: 1px solid var(--cm-n-100); font-size: 16px; }
    header.site.is-open nav.main .nav-login { display: block; border-bottom: 0; }
}

@media (max-width: 720px) {
    section { padding: 60px 0; }
    .hero { padding-top: 56px; }
    .hero h1 { font-size: 32px; }
    .hero .lead { font-size: 16.5px; }
    .section-head h2, .cta-final h2 { font-size: 26px; }
    .features, .audience, .plans, .steps { grid-template-columns: 1fr; }
    .nfc-visual { min-height: 280px; }
    .nfc-bubble { right: 0; bottom: 0; }
    .nfc-grid { grid-template-columns: 1fr; }
    .nfc-form { padding: 22px; }
    .cta-final { padding: 48px 24px; }
    header.site .actions .btn-ghost { display: none; }
}
