/* Ferrari Club México - Estilos para Registro Simplificado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ferrari Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #A6051A 100%);
    min-height: 100vh;
    padding: 20px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #A6051A 0%, #8B0000 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/ferrari-pattern.png') center/cover;
    opacity: 0.1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo {
    height: 60px;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

/* LAYOUT PRINCIPAL */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
}

/* FORMULARIO */
.form-section {
    background: #fafafa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

/* CHECKBOX DE RENOVACIÓN */
.renovacion-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.renovacion-box label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    color: #856404;
    font-weight: 600;
    margin: 0;
}

.renovacion-box input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    cursor: pointer;
    transform: scale(1.2);
}

.section-title {
    color: #A6051A;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #A6051A;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #FFD700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #A6051A;
    box-shadow: 0 0 10px rgba(166, 5, 26, 0.2);
    transform: translateY(-2px);
}

.form-group input.readonly {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.required {
    color: #A6051A;
}

/* MIEMBROS ADICIONALES */
.adicionales-container {
    margin-top: 30px;
}

.adicionales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-add {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.miembro-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.miembro-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* RESUMEN */
.summary-section {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 25px;
    border-radius: 15px;
    color: #000;
    position: sticky;
    top: 20px;
    height: fit-content;
    border: 3px solid #A6051A;
}

.summary-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 1em;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .price {
    font-weight: bold;
    font-size: 1.1em;
}

.discount-item {
    color: #c62828 !important;
}

.summary-total {
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
}

.total-amount {
    font-size: 1.8em;
    font-weight: bold;
    color: #A6051A;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* BOTÓN DE PAGO */
.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, #A6051A 0%, #8B0000 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(166, 5, 26, 0.3);
}

.btn-pay:hover {
    background: linear-gradient(135deg, #8B0000 0%, #A6051A 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(166, 5, 26, 0.5);
}

.btn-pay:active {
    transform: translateY(0);
}

/* ALERTAS */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: bold;
    border-left: 5px solid;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left-color: #f44336;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left-color: #4caf50;
}

.alert-warning {
    background: #fff3e0;
    color: #ef6c00;
    border-left-color: #ff9800;
}

/* ALTERNATIVA PARA SELECTOR DE FECHA (iPhone 12) */
.date-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.date-selector select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
}

/* VALIDACIONES VISUALES */
.input-valid {
    border-color: #4caf50 !important;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3) !important;
}

.input-invalid {
    border-color: #f44336 !important;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3) !important;
}

.validation-message {
    font-size: 0.85em;
    margin-top: 5px;
    padding: 5px;
    border-radius: 3px;
}

.validation-error {
    color: #f44336;
    background: #ffebee;
}

.validation-success {
    color: #4caf50;
    background: #e8f5e9;
}

/* LOADING STATES */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #A6051A;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FOOTER */
.footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.payment-logos img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-logos img:hover {
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .summary-section {
        position: static;
    }
    
    .date-selector {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .content-layout {
        padding: 15px;
    }
}