/* Futuristic Plans CSS - Estilo Ne��n y Tecnol��gico */

/* Hero Section Actualizado */
.modern-hero-section {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d1b69 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 50px 50px, #fff, transparent),
        radial-gradient(1px 1px at 80px 10px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars 120s linear infinite;
}

@keyframes stars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.4);
    background: linear-gradient(45deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #b0c4de;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 1rem;
    color: #ffffff;
}

.hero-features .feature-icon {
    font-size: 1.3rem;
}

/* Futuristic Plan Cards */
.futuristic-plan-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.9) 0%, rgba(15, 20, 25, 0.9) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.2),
        0 0 40px rgba(0, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.futuristic-plan-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.futuristic-plan-card.featured {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.futuristic-plan-card.premium {
    border-color: rgba(0, 255, 127, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 255, 127, 0.3),
        0 0 40px rgba(0, 255, 127, 0.2),
        inset 0 0 20px rgba(0, 255, 127, 0.1);
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    z-index: 10;
}

/* Deja espacio para que el badge no se monte sobre el numero de megas */
.futuristic-plan-card.featured .plan-speed-section,
.futuristic-plan-card.premium .plan-speed-section {
    padding-top: 40px;
}

.premium-badge {
    background: linear-gradient(135deg, #00ff7f 0%, #00d4ff 100%);
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.5);
}

/* Speed Section */
.plan-speed-section {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 128, 255, 0.1) 100%);
    padding: 22px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.plan-speed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.speed-display {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.speed-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00ffff, #0080ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.speed-unit {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

@keyframes glow-tv {
    0% { text-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
    100% { text-shadow: 0 0 25px rgba(0, 255, 255, 1); }
}

.speed-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.speed-icon {
    font-size: 1.3rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.speed-icon:nth-child(2) { animation-delay: 0.5s; }
.speed-icon:nth-child(3) { animation-delay: 1s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
}

/* Details Section */
.plan-details-section {
    padding: 22px;
    position: relative;
}

.plan-header-info {
    text-align: center;
    margin-bottom: 16px;
}

.plan-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.plan-subtitle {
    color: #b0c4de;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Benefits */
.plan-benefits {
    margin-bottom: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.05);
    border-left: 3px solid rgba(0, 255, 255, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.benefit-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

.benefit-item span:last-child {
    color: #ffffff;
    font-size: 0.85rem;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Seccion "Por que elegir nuestros planes" */
.benefits-section {
    background: transparent;
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.benefits-grid .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px 20px;
}

.benefits-grid .benefit-item .benefit-icon {
    font-size: 2.5rem;
    width: auto;
    margin-bottom: 15px;
}

.benefits-grid .benefit-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.benefits-grid .benefit-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Tipografia y enlaces - SOLO dentro de la caja .futuristic-page,
   nunca sueltos en body/a/h1-h6, para no afectar el menu y footer
   compartidos con el resto del sitio */
.futuristic-page h1,
.futuristic-page h2,
.futuristic-page h3,
.futuristic-page h4,
.futuristic-page h5,
.futuristic-page h6 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.futuristic-page p {
    color: rgba(255, 255, 255, 0.8);
}

.futuristic-page a {
    color: #00ffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.futuristic-page a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Futuristic Page Structure */
.futuristic-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.futuristic-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.3"/></svg>');
    background-size: 100px 100px;
    animation: stars 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.futuristic-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.futuristic-section {
    padding: 50px 0;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
}

.futuristic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scan 3s linear infinite;
}

.futuristic-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.futuristic-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
}

.futuristic-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: pulse 2s ease-in-out infinite;
}

.futuristic-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 1px;
}

/* display:flex en vez de grid: con grid + auto-fit, cuando la ultima
   fila no se llena (ej. 5 tarjetas en columnas de a 4), las columnas
   vacias de esa fila quedan reservadas igual y la tarjeta suelta se ve
   pegada a la izquierda. Con flex-wrap + justify-content:center, una
   fila incompleta se centra sola. */
.futuristic-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.futuristic-grid .futuristic-plan-card {
    flex: 1 1 260px;
    max-width: 320px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Price Section */
.plan-price-section {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.price-display {
    margin-bottom: 14px;
}

.price-currency {
    font-size: 1.2rem;
    color: #00ffff;
    vertical-align: super;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.price-period {
    font-size: 0.9rem;
    color: #b0c4de;
    margin-left: 5px;
}

/* Futuristic Buttons */
.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-futuristic {
    padding: 11px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-futuristic:hover::before {
    left: 100%;
}

.btn-install {
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    color: #0a0e27;
    border: 2px solid transparent;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn-install:hover {
    background: linear-gradient(135deg, #0080ff 0%, #00ffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.7);
}

.btn-info {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.btn-info:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
}

.btn-subtitle {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 5px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .speed-number {
        font-size: 3rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .plan-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modern-hero-section {
        padding: 60px 0;
    }
    
    .plan-speed-section,
    .plan-details-section {
        padding: 25px;
    }
    
    .speed-number {
        font-size: 2.5rem;
    }
    
    .speed-features {
        gap: 15px;
    }
    
    .speed-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Loading Animation */
.futuristic-plan-card {
    animation: fadeInScale 0.8s ease forwards;
    opacity: 0;
}

.futuristic-plan-card:nth-child(1) { animation-delay: 0.1s; }
.futuristic-plan-card:nth-child(2) { animation-delay: 0.2s; }
.futuristic-plan-card:nth-child(3) { animation-delay: 0.3s; }
.futuristic-plan-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
