/* Componentes nuevos de las páginas Mytems (se apoyan en Landrick y en mytems-site.css) */
.mytems-price-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #2f55d4;
    background: rgba(47, 85, 212, 0.1);
}
.mytems-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin: 6px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.06);
    font-weight: 600;
}
.mytems-step {
    position: relative;
    padding-top: 8px;
}
.mytems-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    background: #2f55d4;
    box-shadow: 0 10px 24px rgba(47, 85, 212, 0.28);
}
.mytems-big-price {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}
.mytems-big-price small {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.7;
}
.mytems-plan-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
}
.mytems-api-card {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.05);
}
.mytems-api-card h5 { color: #fff; }
.mytems-api-card p { color: rgba(255, 255, 255, 0.7); margin-bottom: 0; }
.mytems-api-card .mytems-service-icon { margin-bottom: 18px; }
.mytems-check-list { list-style: none; padding: 0; margin: 0; }
.mytems-check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.mytems-check-list i { color: #2f55d4; font-size: 20px; line-height: 1.3; }
.mytems-page-hero { padding-top: 150px; padding-bottom: 70px; }
@media (max-width: 767.98px) {
    .mytems-page-hero { padding-top: 120px; padding-bottom: 40px; }
    .mytems-big-price { font-size: 36px; }
}

/* Animación del sistema en el hero */
.mytems-hero-demo {
    max-width: 720px;
    margin-inline: auto;
    border-radius: 14px;
    overflow: hidden;
    background: #eef1f6;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18), 0 8px 20px rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(99, 102, 241, 0.14);
}
.mytems-hero-demo video,
.mytems-hero-demo img { display: block; width: 100%; height: auto; }

/* Tarjeta de producto (páginas de servicio) */
.mpc {
    background: #fff; border: 1px solid rgba(100, 116, 139, 0.2); border-radius: 16px;
    padding: 28px; text-align: left; box-shadow: 0 24px 56px rgba(15, 23, 42, 0.10);
}
.mpc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.mpc-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px; font-size: 24px; color: #2f55d4; background: rgba(47, 85, 212, 0.1);
}
.mpc-kicker { font-size: 13px; color: #64748b; line-height: 1.2; }
.mpc-name { font-size: 19px; font-weight: 700; color: #1e293b; line-height: 1.25; }
.mpc-seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 10px; background: rgba(100, 116, 139, 0.12); }
.mpc-seg button {
    flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; transition: background .15s, color .15s;
}
.mpc-seg button[aria-selected="true"] { background: #fff; color: #1e293b; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14); }
.mpc-price { font-size: 42px; font-weight: 800; line-height: 1.05; color: #1e293b; }
.mpc-price small { font-size: 16px; font-weight: 600; color: #64748b; }
.mpc-note { margin: 6px 0 0; font-size: 14px; color: #64748b; min-height: 22px; }
.mpc-save { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #15803d; background: rgba(34, 197, 94, 0.12); }
.mpc-list { list-style: none; margin: 22px 0 24px; padding: 22px 0 0; border-top: 1px solid rgba(100, 116, 139, 0.18); }
.mpc-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 11px; font-size: 15px; color: #334155; }
.mpc-list i { color: #2f55d4; font-size: 19px; line-height: 1.35; }
.mpc .btn { width: 100%; padding: 13px 16px; font-weight: 700; }
.mpc-foot { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: #64748b; }
.mpc-plan[hidden] { display: none; }
html[data-mytems-theme="dark"] .mpc { background: #111827; border-color: rgba(148, 163, 184, 0.16); box-shadow: 0 24px 56px rgba(2, 8, 23, 0.4); }
html[data-mytems-theme="dark"] .mpc-name, html[data-mytems-theme="dark"] .mpc-price { color: #f1f5f9; }
html[data-mytems-theme="dark"] .mpc-kicker, html[data-mytems-theme="dark"] .mpc-note, html[data-mytems-theme="dark"] .mpc-price small, html[data-mytems-theme="dark"] .mpc-foot { color: #94a3b8; }
html[data-mytems-theme="dark"] .mpc-list li { color: #cbd5e1; }
html[data-mytems-theme="dark"] .mpc-icon, html[data-mytems-theme="dark"] .mpc-list i { color: #8ea6ff; }
html[data-mytems-theme="dark"] .mpc-seg { background: rgba(148, 163, 184, 0.14); }
html[data-mytems-theme="dark"] .mpc-seg button[aria-selected="true"] { background: #1f2937; color: #f1f5f9; }
@media (max-width: 575.98px) { .mpc { padding: 22px; } .mpc-price { font-size: 36px; } }

/* Cambio de tema suave */
html[data-mytems-theme="dark"] { color-scheme: dark; }
html[data-mytems-theme="light"] { color-scheme: light; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease-in-out; }
html.mytems-theming, html.mytems-theming *, html.mytems-theming *::before, html.mytems-theming *::after {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, fill .35s ease, stroke .35s ease !important;
}
@media (min-width: 992px) { .mytems-cpe-lead { padding-top: 36px; } }
.mytems-cpe-result, #result-card { scroll-margin-top: 110px; }

/* Modo oscuro: acordeón (FAQ) y campos de formulario */
html[data-mytems-theme="dark"] .accordion-item {
    background: #111827 !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    box-shadow: none !important;
}
html[data-mytems-theme="dark"] .accordion-button,
html[data-mytems-theme="dark"] .accordion-button.collapsed {
    background: transparent !important;
    color: #e5e7eb !important;
    box-shadow: none !important;
}
html[data-mytems-theme="dark"] .accordion-button:not(.collapsed) { color: #8ea6ff !important; }
html[data-mytems-theme="dark"] .accordion-button::after { filter: invert(1) brightness(1.6); }
html[data-mytems-theme="dark"] .accordion-body { color: #aab4c5; background: transparent; }
html[data-mytems-theme="dark"] .form-control,
html[data-mytems-theme="dark"] .form-select {
    background-color: #0b1220 !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    color: #e5e7eb !important;
}
html[data-mytems-theme="dark"] .form-control::placeholder,
html[data-mytems-theme="dark"] textarea::placeholder { color: #6b7686 !important; opacity: 1; }
html[data-mytems-theme="dark"] .form-control:focus,
html[data-mytems-theme="dark"] .form-select:focus {
    border-color: #6e8cff !important;
    box-shadow: 0 0 0 3px rgba(110, 140, 255, 0.2) !important;
}
html[data-mytems-theme="dark"] .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #0b1220 inset !important;
    -webkit-text-fill-color: #e5e7eb !important;
}
html[data-mytems-theme="dark"] .form-label,
html[data-mytems-theme="dark"] label { color: #cbd5e1; }
html[data-mytems-theme="dark"] .mytems-hero-demo { border-color: rgba(148, 163, 184, 0.18); box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5); background: #0b1220; }
html[data-mytems-theme="dark"] .accordion .accordion-item .accordion-button,
html[data-mytems-theme="dark"] .accordion .accordion-item .accordion-button.collapsed {
    background: transparent !important;
    color: #e5e7eb !important;
}
html[data-mytems-theme="dark"] .accordion .accordion-item .accordion-button:not(.collapsed) { color: #8ea6ff !important; }
html[data-mytems-theme="dark"] .accordion .accordion-item .accordion-body { color: #aab4c5 !important; }

/* Modo oscuro: contraste de textos y botones secundarios */
html[data-mytems-theme="dark"] .text-primary { color: #7f98ff !important; }
html[data-mytems-theme="dark"] .text-muted,
html[data-mytems-theme="dark"] .text-muted li { color: #98a4b8 !important; }
html[data-mytems-theme="dark"] .btn-outline-primary { color: #9db2ff; border-color: rgba(142, 166, 255, 0.55); background: transparent; }
html[data-mytems-theme="dark"] .btn-outline-primary:hover,
html[data-mytems-theme="dark"] .btn-outline-primary:focus { color: #fff; background: #2f55d4; border-color: #2f55d4; }
html[data-mytems-theme="dark"] .mpc-seg button { color: #a3aec0; }
html[data-mytems-theme="dark"] .mpc-seg button[aria-selected="true"] { color: #fff; }
html[data-mytems-theme="dark"] .mytems-price-badge { color: #9db2ff; background: rgba(110, 140, 255, 0.14); }

/* Consultar CPE: tabla de resultado, píldora y columna fija */
.mytems-cpe-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.mytems-cpe-pill.is-ok { color: #15803d; background: rgba(34, 197, 94, 0.14); }
.mytems-cpe-pill.is-bad { color: #b91c1c; background: rgba(239, 68, 68, 0.12); }
html[data-mytems-theme="dark"] .mytems-cpe-pill.is-ok { color: #4ade80; background: rgba(34, 197, 94, 0.16); }
html[data-mytems-theme="dark"] .mytems-cpe-pill.is-bad { color: #fca5a5; background: rgba(239, 68, 68, 0.16); }
html[data-mytems-theme="dark"] .mytems-cpe-result-table,
html[data-mytems-theme="dark"] .mytems-cpe-result-table .table-responsive { background: #111827 !important; }
html[data-mytems-theme="dark"] .mytems-cpe-result-table .table {
    --bs-table-bg: transparent; --bs-table-color: #e5e7eb; --bs-table-hover-bg: rgba(148, 163, 184, 0.07); --bs-table-hover-color: #e5e7eb;
    color: #e5e7eb;
}
html[data-mytems-theme="dark"] .mytems-cpe-result-table .table > :not(caption) > * > * { background-color: transparent !important; color: inherit; box-shadow: none; }
html[data-mytems-theme="dark"] .mytems-cpe-result-table .table td { border-color: rgba(148, 163, 184, 0.14) !important; }
html[data-mytems-theme="dark"] .mytems-cpe-result-table .table tr:hover > td { background-color: rgba(148, 163, 184, 0.07) !important; }
html[data-mytems-theme="dark"] .mytems-cpe-result-label { color: #cbd5e1 !important; }
html[data-mytems-theme="dark"] .mytems-cpe-result-value { color: #f1f5f9 !important; font-weight: 600; }
html[data-mytems-theme="dark"] .mytems-cpe-result-separator { color: #64748b !important; }
@media (min-width: 992px) { .mytems-cpe-lead { position: sticky; top: 120px; align-self: flex-start; } }
html[data-mytems-theme="dark"] .pricing-rates { border: 1px solid rgba(148, 163, 184, 0.2) !important; }
#home.mytems-page-hero { overflow: clip; }

/* Marcas de verificación sobrias (en lugar de íconos de círculo) */
:is(.mpc-list, .mytems-check-list, .mytems-hero-points, .pricing-rates) i.uil-check-circle {
    position: relative; display: inline-block; width: 1em; height: 1em; flex: none;
}
:is(.mpc-list, .mytems-check-list, .mytems-hero-points, .pricing-rates) i.uil-check-circle::before {
    content: ""; position: absolute; left: .3em; top: .1em; width: .3em; height: .58em;
    border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* Encabezado de tarjeta de producto, solo tipografía */
.mpc-top { margin-bottom: 20px; display: block; }
.mpc-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: #2f55d4; margin-bottom: 6px; }
.mpc-name { font-size: 22px; letter-spacing: -0.01em; }
html[data-mytems-theme="dark"] .mpc-kicker { color: #8ea6ff; }
/* Resultado de consulta: franja lateral en lugar de ícono */
.mytems-cpe-result-alert { border-left: 4px solid transparent !important; border-radius: 10px !important; padding: 16px 20px !important; }
.mytems-cpe-result-alert.is-success { border-left-color: #16a34a !important; }
.mytems-cpe-result-alert.is-error { border-left-color: #d97706 !important; }
.mytems-cpe-result-copy { min-height: 0; }

/* Hero en móvil y tablet: separar el video de la lista */
@media (max-width: 991.98px) {
    .mytems-hero-demo { margin-top: 44px; }
}
@media (max-width: 575.98px) {
    .mytems-hero-demo { margin-top: 36px; border-radius: 10px; }
}
