/* css/payment.css - Payment Page Styles FIXED */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #fafafa 0%, #fff7eb 100%);
    color: #1a1a1a;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #CC9432, #E4B948, #EEC851, #E4B948);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Payment Container */
.payment-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* Form Section */
.form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.95rem;
}

label .required {
    color: #ef4444;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    background: white;
}

select {
    cursor: pointer;
}

input:focus,
select:focus {
    outline: none;
    border-color: #E4B948;
    box-shadow: 0 0 0 3px rgba(228, 185, 72, 0.1);
}

input.error,
select.error {
    border-color: #ef4444;
}

input::placeholder {
    color: #999;
}

/* Terms and Conditions */
.terms-group {
    margin: 2rem 0 1.5rem 0;
    padding: 1.2rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.terms-label {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #E4B948;
}

.terms-text {
    color: #1a1a1a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.terms-link {
    color: #E4B948;
    text-decoration: underline;
    font-weight: 500;
}

.terms-link:hover {
    color: #CC9432;
}

/* BOTÓN DE PAGO - CORREGIDO */
.payment-button {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #E4B948, #CC9432);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #CC9432, #a6722e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(228, 185, 72, 0.4);
}

.payment-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Payment Methods */
.payment-methods {
    margin-top: 2rem;
    text-align: center;
}

.payment-methods p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 30px;
    width: auto;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Summary Section */
.summary-section {
    position: sticky;
    top: 100px;
}

.plan-summary {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: white;
}

.plan-badge.despertar-badge {
    background: linear-gradient(135deg, #CD7F32, #e6a96d);
}

.plan-badge.evolucionar-badge {
    background: linear-gradient(135deg, #E4B948, #EEC851);
}

.plan-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.price-period {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
}

.summary-item.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

/* Features List */
.features-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.features-list li {
    padding: 0.6rem 0;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.features-list li::before {
    content: '✓';
    font-weight: bold;
    min-width: 20px;
    color: #E4B948;
}

/* Secure Badge */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(228, 185, 72, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
}

.secure-icon {
    font-size: 1.2rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #383;
}

/* Responsive */
@media (max-width: 968px) {
    .payment-container {
        grid-template-columns: 1fr;
    }
    
    .summary-section {
        position: static;
        order: -1;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .form-section,
    .plan-summary {
        padding: 1.5rem;
    }
    
    .payment-icons {
        gap: 0.5rem;
    }
    
    .payment-icons img {
        height: 25px;
    }
}