:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #292F36;
    --light: #F7FFF7;
    --purple: #6B5B95;
    --orange: #FF9F1C;
    --blue: #4A90E2;
    --green: #2ECC71;
    --gray: #6C757D;
    --light-gray: #F8F9FA;
    --border-radius: 16px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.payment-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Encabezado */
.payment-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.payment-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-header .logo img {
    height: 50px;
    width: auto;
}

.payment-header .logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: var(--purple);
    text-shadow: 2px 2px 0 var(--accent);
}

.logo-accent {
    color: var(--primary);
}

.payment-header h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.payment-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Pasos del proceso */
.payment-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--gray);
    border: 2px solid var(--gray);
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.step-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-divider {
    width: 60px;
    height: 2px;
    background: var(--gray);
    opacity: 0.3;
}

/* Contenido principal */
.payment-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

/* Resumen del pedido */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.summary-card h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.plan-details {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-header h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark);
    font-size: 1.3rem;
}

.plan-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-price {
    margin: 1rem 0;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.plan-price .period {
    color: var(--gray);
    font-size: 1rem;
}

.plan-features {
    margin: 1.5rem 0;
}

.plan-features h4 {
    font-family: 'Fredoka One', cursive;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features i {
    color: var(--green);
}

.plan-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.meta-item i {
    color: var(--primary);
}

.order-breakdown {
    border-top: 2px solid var(--light-gray);
    padding-top: 1.5rem;
}

.order-breakdown h4 {
    font-family: 'Fredoka One', cursive;
    margin-bottom: 1rem;
    color: var(--dark);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--gray);
}

.breakdown-row.total {
    border-top: 2px solid var(--light-gray);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: bold;
    color: var(--dark);
}

.total-amount {
    color: var(--primary);
    font-size: 1.2rem;
}

.change-plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.change-plan-btn:hover {
    color: var(--purple);
    transform: translateX(5px);
}

.security-info {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.security-item:last-child {
    margin-bottom: 0;
}

.security-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    background: rgba(78, 205, 196, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
}

.security-item h5 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.security-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Formulario de pago */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-card h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--dark);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

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

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Comic Neue', cursive;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-gray);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
    background: white;
}

/* Métodos de pago */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-gray);
}

.payment-method:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
}

.method-icon {
    font-size: 1.5rem;
    color: var(--gray);
}

.payment-method.active .method-icon {
    color: var(--primary);
}

.payment-fields {
    animation: fadeIn 0.3s ease;
}

.bank-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.bank-info p {
    margin-bottom: 0.5rem;
}

.info-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-text i {
    color: var(--secondary);
}

/* Términos */
.terms-section {
    margin: 1.5rem 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    font-weight: normal;
    color: var(--dark);
    font-size: 0.9rem;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Botones */
.form-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.secure-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.secure-note i {
    color: var(--green);
}

/* Mascota */
.mascot {
    text-align: center;
    margin-top: 3rem;
}

.mascot img {
    width: 100px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal de éxito */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-icon {
    font-size: 4rem;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.modal-content h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--purple);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.reference {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .payment-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .payment-container {
        padding: 1rem;
    }
    
    .payment-header {
        padding: 1.5rem;
    }
    
    .payment-header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .plan-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .payment-steps {
        gap: 0.5rem;
    }
    
    .step-divider {
        width: 30px;
    }
    
    .plan-price .amount {
        font-size: 2rem;
    }
}