/**
 * ArturDevs - Renovar Page CSS
 * Estilos específicos para la página de renovación de licencia
 * @version 2.0.0
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    padding: 3rem 0;
}

/* ==========================================================================
   Search Card
   ========================================================================== */
.search-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: -4rem auto 0;
    position: relative;
    z-index: 10;
}

.search-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-card h2 i {
    color: var(--primary);
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 576px) {
    .search-form {
        flex-direction: column;
    }
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(99, 102, 241, 0.5);
}

/* ==========================================================================
   Alert Messages
   ========================================================================== */
.alert-custom {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* ==========================================================================
   License Card
   ========================================================================== */
.license-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 900px;
    margin: 2rem auto 0;
}

.license-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .license-header {
        flex-direction: column;
        text-align: center;
    }
}

.license-product-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.license-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.license-product-info {
    flex: 1;
}

.license-product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.license-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary);
    color: white;
}

.license-status {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-expiring {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.license-body {
    padding: 1.5rem;
}

.license-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.license-info-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.license-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.license-info-value {
    font-weight: 600;
    font-size: 1rem;
}

.license-info-value.highlight {
    color: var(--primary);
}

/* ==========================================================================
   Expiration Warning
   ========================================================================== */
.expiration-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid var(--warning);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expiration-warning.expired {
    border-color: var(--danger);
}

.expiration-warning i {
    font-size: 2rem;
    color: var(--warning);
}

.expiration-warning.expired i {
    color: var(--danger);
}

.expiration-warning-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.expiration-warning-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   Renewal Options
   ========================================================================== */
.renewal-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.renewal-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .renewal-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.renewal-option {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.renewal-option:hover {
    border-color: var(--primary-light);
}

.renewal-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.renewal-option.recommended::before {
    content: 'MEJOR PRECIO';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
}

.renewal-option input {
    display: none;
}

.renewal-months {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.renewal-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.renewal-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.renewal-discount {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Summary
   ========================================================================== */
.renewal-summary {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-row .label {
    color: var(--text-secondary);
}

.summary-row .value {
    font-weight: 600;
}

.summary-total {
    border-top: 2px dashed var(--border-color);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.summary-total .value {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.btn-renew {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-renew:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.btn-renew:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Secure Badge
   ========================================================================== */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
