/* Mytems · capa de diseño v5 (se carga al final; usa la base Landrick pero con un estilo propio) */
:root {
    --mx-ink: #0f172a;
    --mx-body: #475569;
    --mx-muted: #64748b;
    --mx-line: #e2e8f0;
    --mx-bg: #ffffff;
    --mx-alt: #f6f8fb;
    --mx-brand: #2f55d4;
    --mx-shadow: 0 30px 70px -28px rgba(15, 23, 42, .35), 0 8px 24px -12px rgba(15, 23, 42, .18);
}
html[data-mytems-theme="dark"] {
    --mx-ink: #f1f5f9;
    --mx-body: #cbd5e1;
    --mx-muted: #94a3b8;
    --mx-line: rgba(148, 163, 184, .22);
    --mx-bg: #0f172a;
    --mx-alt: #0b1220;
    --mx-brand: #8da2fb;
    --mx-shadow: 0 30px 70px -28px rgba(0, 0, 0, .7), 0 8px 24px -12px rgba(0, 0, 0, .5);
}

/* Tipografía común */
.mx-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--mx-brand); }
.mx-h1 { margin: 0 0 22px; font-size: clamp(34px, 3.7vw, 48px); line-height: 1.08; letter-spacing: -.032em; font-weight: 800; color: var(--mx-ink); }
.mx-h2 { margin: 0 0 14px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.14; letter-spacing: -.026em; font-weight: 800; color: var(--mx-ink); }
.mx-h3 { margin: 0 0 14px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--mx-ink); }
.mx-lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--mx-body); max-width: 36rem; }

/* Hero */
.mx-hero.mytems-hero-bg { background: var(--mx-bg) !important; padding: 150px 0 84px; overflow: hidden; }
.mx-hero.mytems-hero-bg::before, .mx-hero.mytems-hero-bg::after { display: none; }
.mx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mx-actions .btn { padding: 13px 24px; font-weight: 700; }
.mx-note { margin: 18px 0 0; font-size: 14px; color: var(--mx-muted); }

/* Marco de captura */
.mx-frame { border: 1px solid var(--mx-line); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: var(--mx-shadow); }
.mx-frame-bar { display: flex; gap: 7px; align-items: center; height: 32px; padding: 0 14px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.mx-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mx-frame img { display: block; width: 100%; height: auto; }
html[data-mytems-theme="dark"] .mx-frame { border-color: rgba(148, 163, 184, .3); }
.mx-frame-hero { transform: perspective(1800px) rotateY(calc(-4deg + var(--ry, 0deg))) rotateX(calc(1deg + var(--rx, 0deg))); transform-origin: left center; width: 112%; max-width: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1); will-change: transform; }

/* Franja de confianza */
.mx-trust { border-top: 1px solid var(--mx-line); border-bottom: 1px solid var(--mx-line); background: var(--mx-bg); }
.mx-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mx-trust-item { padding: 26px 24px; border-left: 1px solid var(--mx-line); display: flex; flex-direction: column; gap: 4px; }
.mx-trust-item:first-child { border-left: 0; padding-left: 0; }
.mx-trust-item strong { font-size: 15px; font-weight: 700; color: var(--mx-ink); }
.mx-trust-item span { font-size: 14px; color: var(--mx-muted); line-height: 1.5; }

/* Secciones */
.mx-section { padding: 104px 0; background: var(--mx-bg); }
.mx-section-alt { background: var(--mx-alt); }
.mx-head { max-width: 46rem; margin: 0 auto 72px; text-align: center; }
.mx-head .mx-lead { margin: 0 auto; }

/* Filas producto */
.mx-row { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; margin-top: 96px; }
.mx-row:first-of-type { margin-top: 0; }
.mx-row.is-reverse { grid-template-columns: 7fr 5fr; }
.mx-row.is-reverse .mx-row-text { order: 2; }
.mx-checks { list-style: none; margin: 26px 0 0; padding: 0; }
.mx-checks li { position: relative; padding: 0 0 12px 30px; font-size: 16px; color: var(--mx-ink); font-weight: 600; }
.mx-checks li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 11px; height: 6px; border-left: 2.5px solid var(--mx-brand); border-bottom: 2.5px solid var(--mx-brand); transform: rotate(-45deg); }

/* Columnas editoriales */
.mx-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 56px; }
.mx-col { border-top: 2px solid var(--mx-ink); padding-top: 20px; }
.mx-col h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--mx-ink); }
.mx-col p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--mx-body); }

/* Soluciones */
.mx-rubros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mx-rubro { display: flex; flex-direction: column; gap: 6px; padding: 32px; border: 1px solid var(--mx-line); border-radius: 14px; background: var(--mx-bg); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mx-rubro:hover { border-color: var(--mx-brand); box-shadow: 0 18px 40px -22px rgba(47, 85, 212, .45); transform: translateY(-2px); }
.mx-rubro-name { font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--mx-ink); }
.mx-rubro-for { font-size: 14px; font-weight: 600; color: var(--mx-brand); }
.mx-rubro-text { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--mx-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mx-rubro-go { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--mx-ink); }
.mx-rubro-go i { vertical-align: middle; }

/* Títulos de las secciones anteriores, alineados al nuevo estilo */
.section .section-title .title { font-weight: 800; letter-spacing: -.026em; font-size: clamp(26px, 3vw, 36px); }
.mytems-service-card { box-shadow: none !important; border: 1px solid var(--mx-line) !important; }

@media (max-width: 991.98px) {
    .mx-row.is-reverse { grid-template-columns: 1fr; }
    .mx-hero.mytems-hero-bg { padding: 118px 0 56px; }
    .mx-frame-hero { transform: none; width: 100%; }
    .mx-section { padding: 72px 0; }
    .mx-head { margin-bottom: 48px; }
    .mx-row, .mx-row.is-reverse { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
    .mx-row.is-reverse .mx-row-text { order: 0; }
    .mx-cols { grid-template-columns: 1fr 1fr; gap: 36px; }
    .mx-trust-grid { grid-template-columns: 1fr 1fr; }
    .mx-trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .mx-trust-item:nth-child(n+3) { border-top: 1px solid var(--mx-line); }
}
@media (max-width: 575.98px) {
    .mx-cols, .mx-rubros { grid-template-columns: 1fr; }
    .mx-rubro { padding: 24px; }
    .mx-lead { font-size: 17px; }
    .mx-trust-grid { grid-template-columns: 1fr; }
    .mx-trust-item, .mx-trust-item:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--mx-line); }
    .mx-trust-item:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .mx-rubro { transition: none; } .mx-frame-hero { transform: none; } }

/* Planes */
#pricing { padding-top: 104px; background: var(--mx-bg); }
#pricing .mx-head { margin-bottom: 56px; }
#pricing .card.pricing { position: relative; border: 1px solid var(--mx-line) !important; box-shadow: none !important; border-radius: 14px; background: var(--mx-bg) !important; }
#pricing .card.pricing.border-primary { border: 2px solid var(--mx-brand) !important; box-shadow: 0 24px 50px -28px rgba(47, 85, 212, .55) !important; }
#pricing .card.pricing .price { font-weight: 800; letter-spacing: -.03em; color: var(--mx-ink); }
.mx-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--mx-brand); white-space: nowrap; }
html[data-mytems-theme="dark"] .mx-badge { color: #0f172a; }

/* Botón secundario sobre fondos oscuros (sección Apachiy) */
.btn.btn-ghost-light{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.55)}
.btn.btn-ghost-light:hover,.btn.btn-ghost-light:focus{background:#fff;color:#1f2937!important;border-color:#fff}

/* Párrafos justificados (los centrados de encabezado se mantienen) */
.mx-hero .mx-lead, .mx-row-text .mx-lead, .mx-col p, .mx-rubro-text { text-align: left; hyphens: none; -webkit-hyphens: none; }
@media (max-width: 575px) { .mx-hero .mx-lead, .mx-row-text .mx-lead, .mx-col p, .mx-rubro-text { text-align: left; hyphens: none; } }

/* Herramientas (home): columnas centradas con ícono */
.mx-col-tool { border-top: 0; padding-top: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.mx-tool-icon { width: 72px; height: 72px; margin-bottom: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--mx-bg); border: 1px solid var(--mx-line); color: var(--mx-brand); font-size: 34px; box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .25); }
.mx-col-tool p { max-width: 20rem; }

/* Tarjetas de tipos de negocio: ícono propio */
.mx-rubro:hover .mx-rubro-go i { transition: transform .18s ease; display: inline-block; }
.mx-rubro:hover .mx-rubro-go i { transform: translateX(4px); }
/* Páginas por tipo de negocio: sin hueco entre título y texto */
.mx-vertical .mytems-service-card h5 { min-height: 0; margin-bottom: 10px; }
.mx-vertical .mytems-service-card p { text-align: left; }

/* ===== Movimiento ===== */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }

/* Entrada del hero (sin JavaScript) */
@keyframes mxUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes mxIn { from { opacity: 0; transform: translateX(46px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mxGlow { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.mx-hero .mx-eyebrow { animation: mxUp .8s cubic-bezier(.2, .7, .2, 1) .05s both; }
.mx-hero .mx-h1 { animation: mxUp .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
.mx-hero .mx-lead { animation: mxUp .9s cubic-bezier(.2, .7, .2, 1) .28s both; }
.mx-hero .mx-actions { animation: mxUp .9s cubic-bezier(.2, .7, .2, 1) .4s both; }
.mx-hero .mx-note { animation: mxUp .9s cubic-bezier(.2, .7, .2, 1) .52s both; }
.mx-hero-media { position: relative; animation: mxIn 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
.mx-hero-media::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 85, 212, .22), rgba(47, 85, 212, 0)); filter: blur(30px); animation: mxGlow 1.6s ease-out .3s both; pointer-events: none; }
.mx-hero-media .mx-frame { position: relative; z-index: 1; }
/* Páginas por tipo de negocio */
.mytems-page-hero .alert-pills { animation: mxUp .7s cubic-bezier(.2, .7, .2, 1) .05s both; }
.mytems-page-hero .mytems-hero-title { animation: mxUp .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
.mytems-page-hero .para-desc { animation: mxUp .9s cubic-bezier(.2, .7, .2, 1) .28s both; }
.mytems-page-hero .mytems-hero-actions { animation: mxUp .9s cubic-bezier(.2, .7, .2, 1) .4s both; }
.mytems-page-hero .mpc { animation: mxIn 1s cubic-bezier(.2, .7, .2, 1) .3s both; }

/* Aparición al hacer scroll (solo si el script está activo) */
html.mx-anim .mx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.2, .7, .2, 1), transform .85s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
html.mx-anim .mx-reveal.is-in { opacity: 1; transform: none; }
html.mx-anim .mx-row .mx-frame.mx-reveal { transform: translateY(36px) scale(.975); }
html.mx-anim .mx-row .mx-frame.mx-reveal.is-in { transform: none; }

/* Detalles al pasar el cursor */
.mx-actions .btn, .mytems-hero-actions .btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.mx-actions .btn-primary:hover, .mytems-hero-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(47, 85, 212, .65); }
.mx-actions .btn-outline-primary:hover, .mytems-hero-actions .btn-outline-primary:hover { transform: translateY(-2px); }
.mytems-service-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease !important; }
.mytems-service-card:hover { transform: translateY(-4px); border-color: var(--mx-brand) !important; box-shadow: 0 20px 40px -24px rgba(47, 85, 212, .45) !important; }
.mx-row .mx-frame { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; }
.mx-row .mx-frame:hover { transform: translateY(-5px); }
.mx-col-tool .mx-tool-icon { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mx-col-tool:hover .mx-tool-icon { transform: translateY(-4px); border-color: var(--mx-brand); box-shadow: 0 16px 30px -16px rgba(47, 85, 212, .5); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mx-hero *, .mx-hero-media, .mx-hero-media::before, .mytems-page-hero *, .vh-float { animation: none !important; }
    .mx-frame-hero, .mytems-service-card, .mx-row .mx-frame, .mx-actions .btn { transition: none; }
}

/* ===== Hero de las páginas por tipo de negocio ===== */
.vh-media { position: relative; padding: 0 0 44px; }
.vh-media .mx-frame { width: 100%; transform: perspective(1800px) rotateY(-3deg); transform-origin: left center; }
.vh-float { position: absolute; left: -28px; bottom: 0; width: 280px; padding: 18px 20px 14px; border-radius: 14px; border: 1px solid var(--mx-line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--mx-shadow); animation: mxUp .9s cubic-bezier(.2, .7, .2, 1) .6s both; }
.vh-float-kicker { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-brand); }
.vh-float ul { list-style: none; margin: 0; padding: 0; }
.vh-float li { position: relative; padding: 0 0 8px 22px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--mx-ink); }
.vh-float li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 9px; height: 5px; border-left: 2px solid var(--mx-brand); border-bottom: 2px solid var(--mx-brand); transform: rotate(-45deg); }
html[data-mytems-theme="dark"] .vh-float { background: rgba(17, 24, 39, .9); }
html[data-mytems-theme="dark"] .vh-media .mx-frame { box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .75); }
/* Sin captura: tarjeta limpia con resplandor suave detrás */
.vh-card-col { position: relative; }
.vh-card-col::before, .vh-media::before { content: ""; position: absolute; inset: 6% -6% -2% 2%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 85, 212, .2), rgba(47, 85, 212, 0)); filter: blur(32px); pointer-events: none; }
.vh-card-col .mpc, .vh-media .mx-frame, .vh-float { position: relative; z-index: 1; }
.vh-float { position: absolute; }
.mytems-page-hero .mpc { padding: 30px; border-radius: 16px; box-shadow: var(--mx-shadow); }
.mytems-page-hero .mpc-kicker { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--mx-brand); }
.mytems-page-hero .mpc-name { font-size: 22px; letter-spacing: -.015em; }
.mytems-page-hero .mpc-list li { padding-bottom: 11px; margin-bottom: 11px; border-bottom: 1px solid var(--mx-line); font-weight: 600; color: var(--mx-ink); }
.mytems-page-hero .mpc-list li:last-child { border-bottom: 0; }
@media (max-width: 991.98px) {
    .vh-media .mx-frame { transform: none; }
    .vh-float { position: relative; left: 0; width: auto; margin-top: -28px; margin-left: 16px; margin-right: 16px; }
}
.mytems-page-hero .vh-media { animation: mxIn 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }

/* Tarjeta "Lo que incluye": mini tarjetas con rombo (estilo Landrick) */
.mytems-page-hero .mpc { padding: 26px; }
.mytems-page-hero .mpc-top { margin: 0 0 20px; padding: 0 0 18px; text-align: center; border-bottom: 1px solid var(--mx-line); }
.mytems-page-hero .mpc-name { font-size: 24px; font-weight: 800; }
.vh-tiles { display: grid; gap: 10px; }
.vh-tile { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-bg); font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--mx-ink); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; animation: mxUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.vh-tile:nth-child(1) { animation-delay: .5s; }
.vh-tile:nth-child(2) { animation-delay: .6s; }
.vh-tile:nth-child(3) { animation-delay: .7s; }
.vh-tile:nth-child(4) { animation-delay: .8s; }
.vh-tile:hover { transform: translateX(4px); border-color: var(--mx-brand); box-shadow: 0 14px 28px -20px rgba(47, 85, 212, .5); }
.vh-dia { position: relative; width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--mx-brand); }
.vh-dia::before { content: ""; position: absolute; inset: 4px; border-radius: 9px; transform: rotate(45deg); background: color-mix(in srgb, var(--mx-brand) 13%, transparent); transition: background .2s ease, transform .3s ease; }
.vh-tile:hover .vh-dia::before { transform: rotate(135deg); background: color-mix(in srgb, var(--mx-brand) 22%, transparent); }
.vh-dia i { position: relative; font-size: 20px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .vh-tile { animation: none; transition: none; } .vh-dia::before { transition: none; } }

/* Complementos del home: tarjetas compactas con rombo (estilo Landrick) */
.mx-compl .mytems-service-card { height: auto; }
.mx-compl .mytems-service-card .card-body { padding: 26px !important; align-items: flex-start; }
.mx-compl .mytems-service-icon { position: relative; width: 52px; height: 52px; background: none; border-radius: 0; color: var(--mx-brand); }
.mx-compl .mytems-service-icon::before { content: ""; position: absolute; inset: 5px; border-radius: 11px; transform: rotate(45deg); background: color-mix(in srgb, var(--mx-brand) 13%, transparent); transition: transform .3s ease, background .2s ease; }
.mx-compl .mytems-service-icon i { position: relative; font-size: 24px; }
.mx-compl .mytems-service-card:hover .mytems-service-icon::before { transform: rotate(135deg); background: color-mix(in srgb, var(--mx-brand) 22%, transparent); }
.mx-compl .mytems-price-badge { padding: 0; border-radius: 0; background: none !important; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--mx-brand) !important; margin: 0 0 6px; }
.mx-compl .mytems-service-card h5 { min-height: 0; margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.mx-compl .mytems-service-card p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; }
.mx-compl .mytems-service-card .link { font-weight: 700; margin-top: auto; }
.mx-compl .mytems-service-card .link i { transition: transform .2s ease; display: inline-block; }
.mx-compl .mytems-service-card:hover .link i { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .mx-compl .mytems-service-icon::before, .mx-compl .mytems-service-card .link i { transition: none; } }

/* Tipos de negocio: etiqueta suave y botón suave (patrón nativo de Landrick, sin iconos) */
.mx-h2 { text-wrap: balance; }
.mx-rubro { gap: 0; padding: 30px; }
.mx-rubro-for { align-self: flex-start; padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--mx-brand); background: color-mix(in srgb, var(--mx-brand) 11%, transparent); }
.mx-rubro-name { margin-top: 16px; font-size: 26px; letter-spacing: -.02em; }
.mx-rubro-text { margin-top: 10px; }
.mx-rubro-go { align-self: flex-start; margin-top: auto; padding: 10px 20px; border-radius: 999px; font-size: 14px; color: var(--mx-brand); background: color-mix(in srgb, var(--mx-brand) 11%, transparent); transition: background .2s ease, color .2s ease; }
.mx-rubro-text { flex: 1 0 auto; }
.mx-rubro-go { margin-top: 22px; }
.mx-rubro:hover .mx-rubro-go { background: var(--mx-brand); color: #fff; }
html[data-mytems-theme="dark"] .mx-rubro:hover .mx-rubro-go { color: #0f172a; }
