/* UI Components - Glassmorphism, Cards, Buttons, Modals */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-hero);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* Cards & Glassmorphism Surfaces */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-normal);
    position: relative;
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Coverage Card & GPS Inputs */
.coverage-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.custom-input {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: var(--transition-fast);
    width: 100%;
}

.custom-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.map-container {
    height: 100%;
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

#mapa-cobertura {
    width: 100%;
    height: 100%;
    min-height: 380px;
}

/* Pricing Cards */
.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.badge-featured {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-hero);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-speed {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}

.plan-name {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.plan-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.plan-features svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

/* Enterprise Items */
.enterprise-card {
    text-align: left;
}

.enterprise-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient-badge);
    border: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.enterprise-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.enterprise-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Floating Action Buttons */
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.float-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
}

.float-whatsapp:hover {
    background: #20ba5a;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

/* Modal Dialogs (IFETEL & Legal) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 23, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-body h4 {
    color: var(--text-primary);
    margin: 16px 0 8px;
}
