* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ENCABEZADO BLANCO */
.white-header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container .logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.back-button {
    background-color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: background 0.3s;
}

.back-button:hover {
    background-color: #ccc;
}

/* REGISTRO CONTAINER */
.registro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 2rem;
    flex: 1;
}

.registro-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    border-top: 4px solid #26ac47;
}

.registro-icon {
    font-size: 3rem;
    color: #26ac47;
    text-align: center;
    margin-bottom: 1rem;
}

.registro-card h2 {
    color: #1a2b4c;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.registro-card > p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* FORM ROW */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .input-group {
    flex: 1;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.input-group label i {
    color: #26ac47;
    margin-right: 0.3rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fafafa;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #26ac47;
    box-shadow: 0 0 0 3px rgba(38,172,71,0.1);
}

/* FECHA DE NACIMIENTO - 3 INPUTS SIN FLECHAS */
.fecha-nacimiento-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.fecha-campo {
    flex: 1;
    text-align: center;
}

.fecha-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s;
    background-color: #fafafa;
}

/* QUITAR FLECHAS DE INPUTS NUMBER */
.fecha-input::-webkit-inner-spin-button,
.fecha-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

.fecha-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.fecha-input:focus {
    outline: none;
    border-color: #26ac47;
    box-shadow: 0 0 0 3px rgba(38,172,71,0.1);
}

.fecha-campo span {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.3rem;
}

.fecha-hint {
    font-size: 0.7rem;
    color: #888;
    display: block;
    margin-top: 0.3rem;
}

.rfc-hint {
    font-size: 0.7rem;
    color: #888;
    display: block;
    margin-top: 0.3rem;
}

/* BOTÓN */
.registro-btn {
    background-color: #26ac47;
    color: white;
    border: none;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

.registro-btn:hover {
    background-color: #1e8c3a;
}

/* MENSAJE */
.registro-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* FOOTER VERDE PEGADO ABAJO */
footer {
    background-color: #26ac47;
    color: white;
    text-align: center;
    padding: 1.2rem;
    margin-top: auto;
}

/* SPINNER */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.spinner-container {
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spinner-dots {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.spinner-dot {
    width: 20px;
    height: 20px;
    background-color: #26ac47;
    border-radius: 50%;
    animation: wormAnimation 0.8s infinite ease-in-out;
}

.spinner-container p {
    color: #1a2b4c;
    font-weight: 500;
}

@keyframes wormAnimation {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
        background-color: #1e8c3a;
    }
}

/* MODAL ÉXITO */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2001;
}

.success-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

.success-content i {
    font-size: 4rem;
    color: #26ac47;
    margin-bottom: 1rem;
}

.success-content h3 {
    color: #26ac47;
    margin-bottom: 0.5rem;
}

.success-content p {
    color: #666;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .registro-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .white-header {
        padding: 0.6rem 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .fecha-nacimiento-container {
        gap: 0.5rem;
    }
    
    .fecha-input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}