/* ================================
   SECCIÓN PLANES - PÁGINA PRINCIPAL
   ================================ */

/* ===== SECCIÓN PLANES ===== */
.plans-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.plans-section::before {
    display: none;
}

.plans-section::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 121, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.plans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: calc(100% - 4rem);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.plans-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out;
}

.plans-subtitle {
    display: inline-block;
    background: linear-gradient(90deg, #3979ff, #60a5fa);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.plans-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.plans-title .highlight {
    color: #60a5fa;
}

.plans-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-top: 5px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.plan-card:hover::before {
    left: 100%;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: rgba(57, 121, 255, 0.3);
    box-shadow: 0 20px 40px rgba(57, 121, 255, 0.2);
}

.plan-card.featured {
    border: 2px solid #3979ff;
    background: rgba(57, 121, 255, 0.1);
    position: relative;
}

.plan-card.featured:hover {
    transform: translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: -15px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #3979ff, #60a5fa);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(57, 121, 255, 0.3);
    z-index: 10;
    width: 120px;
    text-align: center;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: rgba(57, 121, 255, 0.2);
    border: 1px solid rgba(57, 121, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #60a5fa;
    transition: all 0.3s ease;
}

.plan-card:hover .plan-icon {
    background: rgba(57, 121, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(57, 121, 255, 0.5);
}

.plan-speed {
    font-size: 1.8rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.price-period {
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
}

.price-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.plan-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-subtitle {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.4rem 0;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    width: 100%;
    break-inside: avoid;
    flex: none;
}

.plan-features li:hover {
    color: #60a5fa;
    transform: translateX(3px);
}

.plan-features li::before {
    content: '✓';
    color: #3979ff;
    font-weight: 700;
    font-size: 0.8rem;
    width: 16px;
    height: 16px;
    background: rgba(57, 121, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-plan {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid #3979ff;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-plan:hover {
    background: #3979ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 121, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.btn-plan-featured {
    background: #3979ff;
    border-color: #3979ff;
    text-decoration: none;
}

.btn-plan-featured:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.plans-cta {
    text-align: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

/* ================================
   MEDIA QUERIES RESPONSIVAS
   ================================ */

/* Desactivar animaciones en tablets para mejor performance */
@media (min-width: 641px) and (max-width: 768px) {
    .plans-section::after {
        animation: none;
    }
    
    .plan-card {
        animation: none;
    }
}

/* Media Query para tablets y móviles grandes (max-width: 768px) */
@media (max-width: 768px) {
    .plans-section {
        padding: 3rem 0;
    }

    .plans-container {
        padding: 0 1.5rem;
        width: calc(100% - 3rem);
    }

    .plans-header {
        margin-bottom: 3rem;
    }

    .plans-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }

    .plans-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
        min-height: 400px;
    }

    .plan-badge {
        font-size: 0.6rem;
        padding: 0.25rem 1.2rem;
        width: 100px;
    }

    .plan-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .plan-speed {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .plan-price {
        margin-bottom: 0.4rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .price-currency {
        font-size: 1rem;
    }

    .price-period {
        font-size: 0.9rem;
    }

    .plan-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .plan-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .plan-features li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        gap: 0.6rem;
    }

    .plan-features li::before {
        width: 14px;
        height: 14px;
        font-size: 0.7rem;
    }

    .btn-plan {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

    .plans-cta {
        gap: 1rem;
        margin-top: 1rem;
    }
}

/* Media Query para móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .plans-section {
        padding: 2.5rem 0;
    }

    .plans-container {
        padding: 0 1rem;
        width: calc(100% - 2rem);
    }

    .plans-header {
        margin-bottom: 2.5rem;
    }

    .plans-subtitle {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
        margin-bottom: 0.8rem;
    }

    .plans-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .plans-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .plan-card {
        padding: 1.2rem 0.8rem;
        border-radius: 12px;
        min-height: 350px;
    }

    .plan-badge {
        font-size: 0.55rem;
        padding: 0.2rem 1rem;
        width: 90px;
        top: 12px;
        right: -12px;
    }

    .plan-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .plan-speed {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .plan-price {
        margin-bottom: 0.3rem;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .price-currency {
        font-size: 0.9rem;
    }

    .price-period {
        font-size: 0.8rem;
    }

    .price-note {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }

    .plan-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .plan-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .plan-features {
        margin-bottom: 1.5rem;
    }

    .plan-features li {
        font-size: 0.8rem;
        padding: 0.25rem 0;
        gap: 0.5rem;
    }

    .plan-features li::before {
        width: 12px;
        height: 12px;
        font-size: 0.6rem;
    }

    .btn-plan {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .plans-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

/* Media Query para pantallas muy pequeñas (max-width: 360px) */
@media (max-width: 360px) {
    .plans-section {
        padding: 2rem 0;
    }

    .plans-container {
        padding: 0 0.8rem;
        width: calc(100% - 1.6rem);
    }

    .plans-header {
        margin-bottom: 2rem;
    }

    .plans-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .plans-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .plans-grid {
        gap: 1rem;
    }

    .plan-card {
        padding: 1rem 0.6rem;
        border-radius: 10px;
        min-height: 320px;
    }

    .plan-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.8rem;
        width: 80px;
        top: 10px;
        right: -10px;
    }

    .plan-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .plan-speed {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .price-currency {
        font-size: 0.8rem;
    }

    .price-period {
        font-size: 0.7rem;
    }

    .price-note {
        font-size: 0.65rem;
        margin-bottom: 0.6rem;
    }

    .plan-title {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .plan-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }

    .plan-features {
        margin-bottom: 1.2rem;
    }

    .plan-features li {
        font-size: 0.75rem;
        padding: 0.2rem 0;
        gap: 0.4rem;
    }

    .plan-features li::before {
        width: 10px;
        height: 10px;
        font-size: 0.55rem;
    }

    .btn-plan {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 6px;
    }
}

/* Media Query para tablets en orientación portrait */
@media (min-width: 641px) and (max-width: 768px) and (orientation: portrait) {
    .plans-section {
        padding: 3.5rem 0;
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .plan-card {
        padding: 2rem 1.5rem;
        max-width: none;
    }

    .plans-title {
        font-size: 2.5rem;
    }
}

/* Media Query para tablets en orientación landscape */
@media (min-width: 641px) and (max-width: 768px) and (orientation: landscape) {
    .plans-section {
        padding: 2.5rem 0;
    }

    .plans-header {
        margin-bottom: 1.5rem;
    }

    .plans-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .plans-description {
        font-size: 1rem;
    }

    .plans-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .plan-card {
        padding: 1.2rem 0.8rem;
        min-height: 350px;
    }

    .plan-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .plan-speed {
        font-size: 1.4rem;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .plan-title {
        font-size: 0.9rem;
    }

    .plan-subtitle {
        font-size: 0.75rem;
    }

    .plan-features li {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }

    .btn-plan {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}
