﻿
/* ===== BASE TEXT STYLES ===== */
.text-90 {
    font-size: .9em !important;
}

.text-100 {
    font-size: 0.95em !important;
}

.text-110 {
    font-size: 0.95em !important;
}

.text-dark-d1 {
    color: #6c757d !important;
}

.text-green-d1 {
    color: #28a745 !important;
}

.text-primary-d1 {
    color: #276ab4 !important;
}

.text-danger-d1 {
    color: #dc3545 !important;
}

.text-warning-d1 {
    color: #ec971f !important;
}

.text-purple {
    color: #7c3aed !important;
}

/* ===== CONTENEDOR GENERAL ===== */
.pricing-wrapper {
    position: relative;
    overflow: hidden;
}

.pricing-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 15px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .pricing-carousel::-webkit-scrollbar {
        display: none;
    }

/* ===== INTERVALOS (Tabs) ===== */
.pricing-intervals-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

    .pricing-intervals-buttons button {
        position: relative;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px 26px;
        font-weight: 700;
        font-size: 0.9rem;
        color: #1f2937;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

        .pricing-intervals-buttons button:hover:not(.active) {
            background: #f3f4f6;
            transform: translateY(-2px);
        }

        .pricing-intervals-buttons button.active {
            color: #fff;
            box-shadow: 0 6px 20px rgba(0,0,0,0.25);
            border: none;
            transform: translateY(-2px);
            transition: background 0.3s ease;
        }

            .pricing-intervals-buttons button.active::after {
                content: "";
                position: absolute;
                bottom: -3px;
                left: 0;
                right: 0;
                height: 4px;
                border-radius: 0 0 10px 10px;
                background: rgba(255,255,255,0.5);
                animation: glow 2s infinite alternate;
            }

@keyframes glow {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.pricing-intervals-buttons button label {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220,38,38,0.4);
    transform: rotate(4deg);
}

/* ===== CARD ===== */
.pricing-card {
    min-width: 330px;
    max-width: 350px;
    height: 630px;
    background: #fff;
    border-radius: 18px;
    padding: 35px 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 2px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
}

    .pricing-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        background: transparent;
    }

    .pricing-card.expanded {
        height: 670px;
    }

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

.pricing-card:hover::before {
    animation: shimmer 1.5s linear infinite;
    background-size: 300% 100%;
}

/* Colores superiores */
.pricing-card.emprendedor::before {
    background: linear-gradient(90deg,#2563eb,#3b82f6,#2563eb);
    background-size: 200% 100%;
}

.pricing-card.negocio::before {
    background: linear-gradient(90deg,#16a34a,#22c55e,#16a34a);
    background-size: 200% 100%;
}

.pricing-card.avanzado::before {
    background: linear-gradient(90deg,#7c3aed,#a855f7,#7c3aed);
    background-size: 200% 100%;
}

.pricing-card.enterprise::before {
    background: linear-gradient(90deg,#dc2626,#ef4444,#dc2626);
    background-size: 200% 100%;
}

/* Selección */
.pricing-card.selected.emprendedor {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.pricing-card.selected.negocio {
    border-color: #16a34a;
    background-color: #dcfce7;
}

.pricing-card.selected.avanzado {
    border-color: #7c3aed;
    background-color: #f3e8ff;
}

.pricing-card.selected.enterprise {
    border-color: #dc2626;
    background-color: #fee2e2;
}

/* ===== TEXTOS ===== */
.plan-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.plan-title {
    font-weight: 800;
    text-align: center;
}

.plan-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.price {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0 3px;
    transition: all 0.3s ease;
}

    .price span {
        font-size: 0.8rem;
        color: #6b7280;
    }

.price-igv {
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
    font-style: italic;
}

/* ===== PRECIO ANTES ===== */
.price-before {
    text-align: center;
    font-size: 1.1rem;
    color: #dc2626;
    text-decoration: line-through;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
}

    .price-before.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

/* ===== DESCUENTO ===== */
.has-discount .price {
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transform: scale(1.05);
    transition: all 0.4s ease;
}

.pricing-card.emprendedor.has-discount .price {
    color: #2563eb !important;
    text-shadow: 0 2px 12px rgba(37,99,235,0.3);
}

.pricing-card.negocio.has-discount .price {
    color: #16a34a !important;
    text-shadow: 0 2px 12px rgba(22,163,74,0.3);
}

.pricing-card.avanzado.has-discount .price {
    color: #7c3aed !important;
    text-shadow: 0 2px 12px rgba(124,58,237,0.3);
}

.pricing-card.enterprise.has-discount .price {
    color: #dc2626 !important;
    text-shadow: 0 2px 12px rgba(220,38,38,0.3);
}

.ideal-para {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #4b5563;
}

/* ===== CARACTERÍSTICAS ===== */
.caracteristicas {
    list-style: none;
    padding-left: 0;
    color: #4b5563;
    flex-grow: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

    .caracteristicas li {
        padding: 4px 0;
    }

.ver-mas {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
    margin-bottom: 20px;
    align-self: flex-start;
}

    .ver-mas:hover {
        text-decoration: underline;
    }

/* ===== BADGE ===== */
.badge-recommended {
    position: absolute;
    top: -5px;
    right: 20px;
    background: #16a34a;
    color: white;
    font-size: 0.75rem;
    padding: 2px 14px;
    border-radius: 20px;
    font-weight: 700;
}

/* ===== FLECHAS ===== */
.nav-arrow {
    position: absolute;
    top: 45%;
    background: #fff;
    border: 1px solid #e5e7eb;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

    .nav-arrow:hover {
        background: #f3f4f6;
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }

    .nav-arrow.left {
        left: 5px;
    }

    .nav-arrow.right {
        right: 5px;
    }

/* ===== BOTONES (OPTIMIZADOS) ===== */
.select-plan {
    font-weight: 700;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

/* Emprendedor */
.pricing-card.emprendedor .select-plan {
    color: #2563eb;
    border: 2px solid #2563eb;
    background: transparent;
}

    .pricing-card.emprendedor .select-plan:hover {
        background: #2563eb;
        color: #fff;
        box-shadow: 0 4px 15px rgba(37,99,235,0.4);
    }

/* Negocio (Recomendado) */
.pricing-card.negocio .select-plan {
    background: #16a34a;
    border: 2px solid #16a34a;
    color: #fff;
    box-shadow: 0 4px 20px rgba(22,163,74,0.4);
}

    .pricing-card.negocio .select-plan:hover {
        background: #15803d;
        border-color: #15803d;
        box-shadow: 0 6px 25px rgba(22,163,74,0.5);
    }

/* Avanzado */
.pricing-card.avanzado .select-plan {
    color: #7c3aed;
    border: 2px solid #7c3aed;
    background: transparent;
}

    .pricing-card.avanzado .select-plan:hover {
        background: #7c3aed;
        color: #fff;
        border-color: #7c3aed;
        box-shadow: 0 4px 15px rgba(124,58,237,0.4);
    }

    .pricing-card.avanzado .select-plan:active {
        background: #6d28d9;
        border-color: #6d28d9;
    }

/* Enterprise */
.pricing-card.enterprise .select-plan {
    color: #dc2626;
    border: 2px solid #dc2626;
    background: transparent;
}

    .pricing-card.enterprise .select-plan:hover {
        background: #dc2626;
        color: #fff;
        box-shadow: 0 4px 15px rgba(220,38,38,0.4);
    }

/* ===== HOVER MODERNO EN LOS PLANES ===== */
.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .pricing-card:hover .plan-icon {
        transform: scale(1.15);
        transition: transform 0.4s ease;
    }

    .pricing-card:hover .plan-title,
    .pricing-card:hover .price {
        transition: color 0.4s ease;
    }

.pricing-card.emprendedor:hover .plan-title,
.pricing-card.emprendedor:hover .price {
    color: #2563eb;
}

.pricing-card.negocio:hover .plan-title,
.pricing-card.negocio:hover .price {
    color: #16a34a;
}

.pricing-card.avanzado:hover .plan-title,
.pricing-card.avanzado:hover .price {
    color: #7c3aed;
}

.pricing-card.enterprise:hover .plan-title,
.pricing-card.enterprise:hover .price {
    color: #dc2626;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .pricing-carousel {
        gap: 0;
        padding: 0;
        scroll-snap-type: x mandatory;
    }

    .pricing-card {
        min-width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}


.btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-warning.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.5);
}




/* ===== BOTONES (UNIFICADOS Y MODERNOS) ===== */
.select-plan {
    font-weight: 700;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.35s ease;
    transform: translateY(0);
    color: #fff !important; /* color del texto siempre visible */
}

/* Emprendedor - Azul */
.pricing-card.emprendedor .select-plan {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

    .pricing-card.emprendedor .select-plan:hover {
        background: linear-gradient(90deg, #1d4ed8, #2563eb);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
    }

/* Negocio - Verde (Recomendado con halo) */
.pricing-card.negocio .select-plan {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border: none;
    animation: pulseGreen 3s infinite alternate;
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4);
    color: #fff;
}

    .pricing-card.negocio .select-plan:hover {
        animation-play-state: paused;
        transform: translateY(-3px);
        background: linear-gradient(90deg, #15803d, #16a34a);
        box-shadow: 0 8px 25px rgba(22, 163, 74, 0.6);
    }

/* Avanzado - Morado */
.pricing-card.avanzado .select-plan {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

    .pricing-card.avanzado .select-plan:hover {
        background: linear-gradient(90deg, #6d28d9, #7c3aed);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    }

/* Enterprise - Rojo */
.pricing-card.enterprise .select-plan {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

    .pricing-card.enterprise .select-plan:hover {
        background: linear-gradient(90deg, #b91c1c, #dc2626);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
    }

/* Animación halo del botón verde */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }

    100% {
        box-shadow: 0 0 25px 8px rgba(22, 163, 74, 0.35);
    }
}




