/* Estilos específicos para operadora móvil AdFibra */

/* Indicadores de cobertura */
.coverage-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.25rem;
}

.coverage-excellent {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 2px solid #28a745;
}

.coverage-good {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 2px solid #ffc107;
}

.coverage-limited {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid #dc3545;
}

/* Iconos de tecnología */
.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-badge.tech-5g {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.tech-badge.tech-4g {
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
}

.tech-badge.tech-fiber {
    background: linear-gradient(135deg, #00d2d3 0%, #54a0ff 100%);
}

/* Calculadora de datos */
.data-calculator {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.data-slider {
    margin: 1.5rem 0;
}

.data-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--light-gray);
    outline: none;
    -webkit-appearance: none;
}

.data-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 74, 255, 0.3);
}

.data-slider input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 74, 255, 0.3);
}

.data-display {
    text-align: center;
    margin: 1rem 0;
}

.data-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.data-unit {
    font-size: 1.2rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Comparador de operadoras */
.operator-comparison {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.operator-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.operator-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.operator-row:last-child {
    border-bottom: none;
}

.operator-feature {
    font-weight: 500;
    color: var(--secondary);
}

.operator-value {
    text-align: center;
    font-weight: 600;
}

.operator-value.best {
    color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.operator-logo {
    height: 30px;
    object-fit: contain;
}

/* Verificador de cobertura */
.coverage-checker {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.postal-input {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 1.5rem auto;
}

.postal-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.postal-input button {
    padding: 12px 25px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.postal-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 74, 255, 0.3);
}

/* Proceso de portabilidad */
.portability-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--gray);
    line-height: 1.6;
}

/* Timeline de proceso */
.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
}

/* Simulador de factura */
.bill-simulator {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.bill-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
}

.bill-description {
    color: var(--secondary);
}

.bill-price {
    font-weight: 600;
    color: var(--primary);
}

/* Testimonios de clientes */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    position: relative;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h6 {
    margin: 0;
    color: var(--secondary);
    font-weight: 600;
}

.testimonial-info small {
    color: var(--gray);
}

/* Alertas y notificaciones */
.alert-promo {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.alert-promo h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.alert-promo .btn {
    background: white;
    color: #ee5a24;
    border: none;
    font-weight: 600;
    margin-top: 1rem;
}

/* Medidores de velocidad */
.speed-meter {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto;
}

.speed-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary) 0deg, var(--primary) var(--speed-angle, 0deg), var(--light-gray) var(--speed-angle, 0deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.speed-circle::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: white;
    border-radius: 50%;
}

.speed-value {
    position: relative;
    z-index: 2;
    text-align: center;
}

.speed-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.speed-unit {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .operator-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .postal-input {
        flex-direction: column;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-content {
        margin-left: 1rem;
        margin-right: 0;
    }
    
    .timeline-icon {
        position: absolute;
        left: 5px;
    }
    
    .portability-steps {
        grid-template-columns: 1fr;
    }
    
    .data-amount {
        font-size: 2rem;
    }
}

/* Animaciones específicas */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Estados de carga específicos */
.coverage-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray);
}

.coverage-loading .spinner {
    margin-right: 1rem;
    border-color: var(--primary);
    border-top-color: transparent;
}