/* =====================================================================
   mp-planes.css  — v0.16.0
   Estilos para [mp-planes]: grid de tarjetas de plan
   ===================================================================== */

.mp-planes-wrap *,
.mp-planes-wrap *::before,
.mp-planes-wrap *::after { box-sizing: border-box; }

/* Selector de moneda */
.mp-moneda-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}
.mp-moneda-toggle {
    display: inline-flex;
    padding: 4px;
    background: #fff;
    border: 2px solid #0a2463;
    border-radius: 999px;
    gap: 4px;
}
.mp-moneda-btn {
    border: 0;
    background: transparent;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #0a2463;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.mp-moneda-btn--active {
    background: #0a2463;
    color: #fff;
}

/* Grid */
.mp-planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 48px;
}

/* Tarjeta */
.mp-plan-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mp-plan-card:hover {
    border-color: #ff8c00;
    box-shadow: 0 8px 32px rgba(255,140,0,.15);
    transform: translateY(-3px);
}
.mp-plan-card--featured {
    border-color: #ff8c00;
    box-shadow: 0 8px 32px rgba(255,140,0,.2);
}

/* Franja superior de color */
.mp-plan-card__stripe {
    height: 5px;
    background: #e5e7eb;
}
.mp-plan-card--featured .mp-plan-card__stripe { background: #ff8c00; }

/* Badge "Más popular" */
.mp-popular-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ff8c00;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .05em;
    pointer-events: none;
}

/* Cuerpo */
.mp-plan-card__body {
    padding: 24px 24px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Badge tipo */
.mp-plan-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    align-self: flex-start;
    margin-bottom: 4px;
}
.mp-plan-card--featured .mp-plan-card__badge {
    background: rgba(255,140,0,.12);
    color: #b45309;
}

/* Nombre */
.mp-plan-card__name {
    font-size: 22px;
    font-weight: 800;
    color: #0a2463;
    line-height: 1.1;
    margin: 0 0 6px;
}

/* Precio */
.mp-plan-card__price {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin: 8px 0 4px;
    line-height: 1;
    color: #ff8c00;
}
.mp-plan-card__price sup {
    font-size: 16px;
    font-weight: 700;
    margin-top: 7px;
}
.mp-plan-card__price strong {
    font-size: 46px;
    font-weight: 800;
}
/* Céntimos: mismo precio exacto que el carrito y el checkout, nunca redondeado */
.mp-plan-card__price .mp-cents {
    font-size: 22px;
    font-weight: 800;
    margin-top: 7px;
}
.mp-plan-card__price small {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    align-self: flex-end;
    margin-bottom: 6px;
}

/* Lista de features */
.mp-feat-list {
    list-style: none;
    margin: 10px 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mp-feat-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}
.mp-feat-list li:last-child { border-bottom: 0; }
.mp-feat-ico {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 15px;
    margin-top: 1px;
}

/* CTA */
.mp-plan-card__cta {
    padding: 0 24px 24px;
    margin-top: auto;
}
.mp-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background .2s, transform .15s;
    border: 0;
}
.mp-plan-btn {
    background: #0a2463;
    color: #fff;
}
.mp-plan-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    color: #fff;
}
.mp-plan-btn--featured {
    background: #ff8c00;
    color: #fff;
}
.mp-plan-btn--featured:hover {
    background: #e67e00;
    transform: translateY(-1px);
    color: #fff;
}

/* Utilidades */
[hidden] { display: none !important; }

@media (max-width: 640px) {
    .mp-planes-grid { grid-template-columns: 1fr; }
    .mp-plan-card__price strong { font-size: 38px; }
    .mp-plan-card__price .mp-cents { font-size: 18px; }
}


/* v0.19.0 - icono del plan */
.mp-plan-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 10px; vertical-align: middle; color: #0a2463; background: #f0f4ff; border-radius: 10px; }
.mp-plan-card__icon .mp-ico { width: 24px; height: 24px; fill: currentColor; }
.mp-plan-card__icon .mp-ico--img { width: 28px; height: 28px; object-fit: contain; }

/* v0.19.2 - icono vectorial en caracteristicas */
.mp-feat-ico .mp-ico { width: 16px; height: 16px; fill: currentColor; vertical-align: -2px; color: #0a2463; }

/* v0.20.0 - cifras y linea de ahorro */
.mp-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; padding: 0; }
.mp-specs__item { display: flex; flex-direction: column; gap: 2px; min-width: 72px; padding: 8px 12px; background: #f0f4ff; border-radius: 8px; }
.mp-specs dt { font-size: 11px; color: #6b7280; font-weight: 600; margin: 0; }
.mp-specs dd { font-size: 15px; font-weight: 800; color: #0a2463; margin: 0; }
.mp-plan-card__from { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #065f46; }

/* v0.21.0 - beneficios y preguntas frecuentes */
.mp-included, .mp-faq { max-width: 900px; margin: 40px auto 0; }
.mp-info-title { font-size: 22px; font-weight: 800; color: #0a2463; margin: 0 0 14px; }
.mp-included__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 20px; }
.mp-included__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #1f2937; }
.mp-included__ico { flex-shrink: 0; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: #f0f4ff; color: #0a2463; border-radius: 9px; font-size: 16px; }
.mp-included__ico .mp-ico { width: 18px; height: 18px; fill: currentColor; }
.mp-faq__item { border-bottom: 1px solid #e5e7eb; padding: 14px 2px; }
.mp-faq__item summary { cursor: pointer; font-weight: 700; color: #0a2463; font-size: 16px; }
.mp-faq__item summary:focus-visible { outline: 2px solid #0a2463; outline-offset: 3px; }
.mp-faq__item p { margin: 10px 0 0; color: #374151; line-height: 1.6; font-size: 15px; }

/* v0.23.0 - categorias, tarjeta de contacto, rejilla para 3-4 planes */
.mp-planes-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 1180px; }
.mp-plan-card--contact { display: flex; flex-direction: column; justify-content: space-between; background: #f8faff; border: 2px dashed #9db4e4; box-shadow: none; }
.mp-plan-card--contact .mp-plan-card__icon .mp-ico { width: 24px; height: 24px; fill: currentColor; }
.mp-contact__text { color: #374151; line-height: 1.55; font-size: 15px; margin: 8px 0 0; }
.mp-cat-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.mp-cat-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; text-decoration: none; color: #1f2937; transition: border-color .15s, box-shadow .15s; }
.mp-cat-card:hover, .mp-cat-card:focus-visible { border-color: #0a2463; box-shadow: 0 4px 16px rgba(10, 36, 99, .1); }
.mp-cat-card__icon { flex-shrink: 0; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: #f0f4ff; color: #0a2463; border-radius: 12px; }
.mp-cat-card__icon .mp-ico { width: 24px; height: 24px; fill: currentColor; }
.mp-cat-card__body { display: flex; flex-direction: column; gap: 4px; }
.mp-cat-card__body strong { font-size: 17px; color: #0a2463; }
.mp-cat-card__body span { font-size: 14px; line-height: 1.45; color: #4b5563; }

/* v0.23.0b - contacto como franja de ancho completo y cifras en una fila */
.mp-planes-grid .mp-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mp-planes-grid .mp-specs__item { min-width: 0; padding: 8px 8px; }
.mp-planes-grid .mp-specs dd { font-size: 14px; white-space: nowrap; }
.mp-plan-card--contact { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; padding: 22px 26px; }
.mp-plan-card--contact .mp-plan-card__body { flex: 1; padding: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.mp-plan-card--contact .mp-plan-card__icon { grid-row: 1 / span 2; margin: 0; }
.mp-plan-card--contact .mp-plan-card__name { margin: 0; font-size: 22px; }
.mp-plan-card--contact .mp-contact__text { margin: 4px 0 0; }
.mp-plan-card--contact .mp-plan-card__cta { flex-shrink: 0; padding: 0; min-width: 220px; }
@media (max-width: 640px) {
    .mp-plan-card--contact { flex-direction: column; align-items: stretch; gap: 14px; }
    .mp-plan-card--contact .mp-plan-card__cta { min-width: 0; }
}

/* Plan con el botón desactivado: el cuerpo recupera el espacio que ocupaba el botón */
.mp-plan-card:not(.mp-plan-card--contact) > .mp-plan-card__body:last-child { padding-bottom: 24px; }
