/* RESET Y CENTRADO ABSOLUTO */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 80px 20px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--text-main);
    /* El fondo animado viene de base.css */
}

#particles-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.5;
}

/* CARD PRINCIPAL */
.reg-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 950px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    margin: 0 auto !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

/* HEADER */
.auth-header { text-align: center; margin-bottom: 50px; }
.logo-container {
    width: auto !important; height: auto !important; 
    margin: 0 auto 15px !important;
    background: transparent !important;
    border-radius: 0 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    box-shadow: none !important;
}

/* SECCIONES Y DISEÑO DE CÁPSULAS */
.section-box {
    background: #ffffff;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.section-icon { 
    width: 42px; height: 42px; 
    background: var(--primary-light); 
    color: var(--primary); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; 
}
.section-title { font-size: 1.2rem; color: var(--text-main); font-weight: 800; margin: 0; }

.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.1rem; z-index: 5; }

.fi-capsule {
    width: 100%; background: #ffffff; border: 1.5px solid var(--murotech-gray-200);
    padding: 18px 20px 18px 58px; border-radius: 35px;
    font-size: 1rem; font-weight: 600; color: var(--text-main); transition: all 0.3s;
    font-family: inherit;
    min-height: 56px;
}
.fi-capsule:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: var(--shadow-blue); 
}

.label-capsule { 
    font-size: 0.72rem; 
    font-weight: 800; 
    color: var(--text-muted); 
    margin: 0 0 8px 22px; 
    display: block; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.premium-select-capsule {
    width: 100%; background: #ffffff; border: 1.5px solid var(--murotech-gray-200); padding: 18px 20px; border-radius: 35px;
    font-size: 1rem; font-weight: 700; color: var(--text-main); appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 22px center; background-size: 18px;
    min-height: 56px;
}

/* Botón de consulta MH en la misma fila que el input */
.input-with-button { display:flex; gap:12px; align-items:stretch; }
.input-with-button .fi-capsule { flex:1; }
.btn-consultar-mh {
    background: linear-gradient(135deg,#1e40af,#3b82f6); color:white; border:none; padding:0 25px; border-radius:35px; font-weight:800; cursor:pointer; display:flex; align-items:center; justify-content:center;
    min-width: 140px; min-height: 56px; font-size:0.95rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2.align-top { align-items: flex-start; }
.grid-2.align-top > div { display: flex; flex-direction: column; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 15px; }

.upload-dashed-zone { 
    border: 2px dashed var(--murotech-gray-200); 
    border-radius: 25px; padding: 30px; text-align: center; margin: 20px 0; background: #ffffff; 
}

.btn-finalizar {
    padding: 18px 45px; 
    background: var(--grad-premium);
    border: none; color: white; border-radius: 35px; font-weight: 900; cursor: pointer;
    box-shadow: var(--shadow-blue); transition: all 0.3s;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-finalizar:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }

.btn-progreso { 
    padding: 18px 35px; background: #fff; 
    border: 2px solid var(--murotech-gray-200); 
    color: var(--text-main);
    border-radius: 35px; font-weight: 800; cursor: pointer; 
    transition: all 0.3s;
}
.btn-progreso:hover { background: var(--bg-main); border-color: var(--primary); }

.pass-toggle { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; z-index: 6; }

@media (max-width: 800px) {
    body { padding: 20px 10px 100px; }
    .reg-card { 
        padding: 25px 20px; 
        border-radius: 25px;
        margin: 0 !important;
    }
    .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .auth-header { margin-bottom: 30px; }
}