/* =========================================================
   PLANES Y PRECIOS (core/planes/precios.html)
   Precios y límites salen de stores/planes.py. Colores de SOLOS.
   ========================================================= */

.pl-pagina {
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 0 24px;
}

.pl-encabezado {
    margin-bottom: 20px;
    text-align: center;
}

.pl-encabezado h1 {
    margin: 0 0 6px;
    color: #1c1633;
    font-size: 1.5rem;
    font-weight: 800;
}

.pl-encabezado p {
    margin: 0 0 16px;
    color: #6b6785;
}

/* Selector Mensual / Anual */
.pl-selector {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #f1ecfd;
}

.pl-selector input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pl-selector span {
    display: block;
    padding: 8px 18px;
    border-radius: 999px;
    color: #5b4f80;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.pl-selector em {
    margin-left: 4px;
    color: #15803d;
    font-size: .72rem;
    font-style: normal;
}

.pl-selector input:checked + span {
    background: linear-gradient(135deg, #5927ce, #7a58b1);
    color: #fff;
}

.pl-selector input:checked + span em { color: #d9fbe5; }
.pl-selector input:focus-visible + span { outline: 2px solid #6a42af; outline-offset: 2px; }

/* Tarjetas: una debajo de otra en el celular, tres en fila en computadora */
.pl-planes {
    display: grid;
    gap: 16px;
}

.pl-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px 18px 18px;
    border: 1px solid #e7e1f7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(77, 41, 160, .07);
}

.pl-plan-destacado {
    border: 2px solid #5927ce;
    box-shadow: 0 12px 28px rgba(89, 39, 206, .18);
}

.pl-plan-actual { outline: 3px solid #c9b8f5; }

.pl-cinta {
    position: absolute;
    top: -12px;
    left: 50%;
    padding: 4px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5927ce, #7a58b1);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    transform: translateX(-50%);
}

.pl-plan h2 {
    margin: 0 0 6px;
    color: #5927ce;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pl-precio {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.pl-precio strong {
    color: #1c1633;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.pl-precio span { color: #6b6785; }

.pl-precio s {
    color: #9a94b3;
    font-size: 1rem;
}

.pl-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.pl-ahorro,
.pl-gratis {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.pl-ahorro { background: #dcfce7; color: #15803d; }
.pl-gratis { background: #fff1ec; color: #d8431f; }

/* Mensual o anual según el selector */
.pl-planes[data-periodo="mes"] .pl-anio,
.pl-planes[data-periodo="anio"] .pl-mes {
    display: none;
}

.pl-lista {
    flex: 1;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.pl-lista li {
    display: flex;
    gap: 8px;
    padding: 5px 0;
    color: #2b2545;
    font-size: .92rem;
}

.pl-lista i { color: #5927ce; }
.pl-lista .pl-no { color: #a29db8; }
.pl-lista .pl-no i { color: #c9c4da; }

.pl-btn {
    display: block;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5927ce, #7a58b1);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.pl-btn:hover,
.pl-btn:focus { color: #fff; filter: brightness(1.08); }

.pl-btn-sec {
    border: 2px solid #5927ce;
    background: #fff;
    color: #5927ce;
}

.pl-btn-sec:hover,
.pl-btn-sec:focus { color: #5927ce; background: #f6f2ff; }

.pl-nota {
    display: block;
    margin-top: 6px;
    color: #6b6785;
    text-align: center;
}

/* Consultas por WhatsApp */
.pl-ayuda {
    margin-top: 24px;
    text-align: center;
}

.pl-ayuda p {
    margin-bottom: 8px;
    color: #6b6785;
}

.pl-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.pl-whatsapp:hover,
.pl-whatsapp:focus { color: #fff; filter: brightness(1.05); }

@media (min-width: 992px) {

    .pl-encabezado h1 { font-size: 1.9rem; }

    .pl-planes {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

/* Animación suave de entrada: solo si no se pidió reducir movimiento */
@media (prefers-reduced-motion: no-preference) {

    .pl-plan {
        animation: plEntrar .45s ease-out both;
        animation-delay: calc(var(--i, 0) * 90ms);
    }
}

@keyframes plEntrar {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
