/* Estilos Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 22px;
    margin-top: 30px;
}

/* Selector de Demos */
.demo-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.demo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #e0e0e0;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.demo-btn.active {
    background-color: #3498db;
    color: white;
}

.demo-btn:hover {
    background-color: #2980b9;
    color: white;
}

/* Formularios */
.checkout-form {
    display: none;
}

.checkout-form.visible {
    display: block;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #27ae60;
}

/* Estilos específicos para el formulario MALO */
.bad-group label {
    color: #555;
    font-size: 14px;
    margin-bottom: 5px;
}

.bad-group input, .bad-group select, .bad-group textarea {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
}

.bad-group:nth-child(odd) input, 
.bad-group:nth-child(odd) select, 
.bad-group:nth-child(odd) textarea {
    background-color: #f0f0f0;
}

.bad-btn {
    background-color: #e74c3c !important;
}

.bad-btn:hover {
    background-color: #c0392b !important;
}

/* Estilos para el formulario BUENO */
.accordion {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion.active {
    border-color: #3498db;
}

.accordion-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.accordion.active .accordion-header {
    background-color: #e3f2fd;
}

.accordion-header span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 14px;
}

.accordion-header h2 {
    flex: 1;
    margin: 0;
    font-size: 18px;
}

.accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion.active .accordion-content {
    padding: 20px;
    max-height: 1000px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method span:first-child {
    font-size: 24px;
    margin-bottom: 5px;
}

.payment-method.active {
    border-color: #3498db;
    background-color: #e3f2fd;
}

.payment-details {
    margin-top: 20px;
}

.next-btn, .prev-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.next-btn {
    background-color: #3498db;
    color: white;
    margin-top: 10px;
}

.next-btn:hover {
    background-color: #2980b9;
}

.prev-btn {
    background-color: #95a5a6;
    color: white;
}

.prev-btn:hover {
    background-color: #7f8c8d;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Estilos para el formulario MINIMALISTA */
.minimal-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-prompt {
    margin-top: 10px;
    color: #3498db;
    cursor: pointer;
}

.login-prompt a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.minimal-section {
    margin-bottom: 30px;
}

.minimal-btn {
    width: 100%;
    padding: 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.minimal-btn:hover {
    background-color: #1a252f;
}

.secondary-btn {
    background-color: #95a5a6;
}

.secondary-btn:hover {
    background-color: #7f8c8d;
}

.text-center {
    text-align: center;
    margin: 15px 0;
    color: #7f8c8d;
}

.payment-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option.active {
    border-color: #2c3e50;
    background-color: #f5f5f5;
}

.minimal-footer {
    margin-top: 30px;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

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

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.modal h2 {
    color: #2ecc71;
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 25px;
    font-size: 16px;
}

.modal-btn {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-btn:hover {
    background-color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .payment-methods, .payment-options {
        flex-direction: column;
    }
    
    .accordion-header h2 {
        font-size: 16px;
    }
}
