/* ── REGISTER WRAPPER ── */
.register-wrapper {
    display: flex;
    min-height: calc(100vh - 88px);
    margin: 0 2rem 1.5rem 2rem;
    width: calc(100% - 4rem);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

/* ── PANEL IZQUIERDO ── */
.register-left {
    flex: 1.8;
    background: #dbeafe;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
}
.register-left-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.register-brand { font-size: 1rem; font-weight: 800; color: #2563eb; margin-bottom: 1.5rem; }
.register-hero {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2rem;
}
.register-footer-text { font-size: 0.78rem; color: #94a3b8; margin-top: auto; padding-top: 1rem; }
.register-footer-text a { color: #64748b; text-decoration: none; margin: 0 0.5rem; }
.register-footer-text a:hover { text-decoration: underline; }
/* ── ZONA GRÁFICA ── */
.deco-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem 1.5rem 1rem;
}
.deco-chart { width: 100%; max-width: 1000px; }
.container-card-charts {
    position: relative;
    width: 100%;
    max-width: 750px;
    height: 500px;
    background: linear-gradient(to bottom, #e0eaff, #c7d9ff);
    border-radius: 28px;
    padding: 2px;
    box-shadow: 0 8px 40px rgba(37,99,235,0.15);
}
.container-card-charts::before {
    position: absolute;
    content: "";
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background-color: #93c5fd;
    z-index: -10;
    filter: blur(50px);
}
.card-charts {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tags-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.tags-card .radio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border-radius: 12px;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
}
.tags-card .radio:hover { color: #2563eb; }
.tags-card .radio input { display: none; }
.tags-card .radio .name {
    width: 100%;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.tags-card .radio input:checked + .name {
    color: #2563eb;
    background: #dbeafe;
    font-weight: 700;
}
.main-texts { display: flex; flex-direction: column; padding: 10px 24px 6px; }
.main-texts .title { font-size: 0.9rem; font-weight: 600; color: #475569; margin-bottom: 2px; }
.main-texts .change { font-size: 1.1rem; font-weight: 800; color: #16a34a; }
.charts-lines { position: relative; width: 100%; flex: 1; min-height: 180px; }
.charts-lines i { position: absolute; inset: 0; display: flex; width: 100%; height: 100%; }
.charts-lines i svg { width: 100%; height: 100%; }
.lines { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.lines span {
    width: 1px;
    height: 100%;
    margin: 0 18px;
    background: linear-gradient(to top, rgba(37,99,235,0) 0%, rgba(37,99,235,0.06) 50%, rgba(37,99,235,0) 100%);
}
.charts-lines path { opacity: 0; }
.card-charts svg { transition: transform 0.5s ease; }
.card-charts:hover svg { transform: scale(1.05); }
.icon-week path { animation: draw 8s ease infinite; }
.icon-month path { animation: draw 8s 3s ease infinite; }
@keyframes draw {
    0%   { stroke-dashoffset: 1500; opacity: 0.9; }
    50%  { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -1500; opacity: 0.9; }
}

/* ── PANEL DERECHO ── */
.register-right {
    flex: 0.6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    overflow-y: auto;
}
.register-form-wrap { width: 100%; max-width: 420px; }
.register-title { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin-bottom: 0.3rem; }
.register-subtitle { font-size: 0.9rem; color: #64748b; margin-bottom: 1.5rem; }
.register-label { font-size: 0.82rem; font-weight: 600; color: #0f172a; display: block; margin-bottom: 0.4rem; }
.register-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.register-input:focus { border-color: #2563eb; }
.register-input::placeholder { color: #94a3b8; }
.register-input-wrap { position: relative; }
.register-input-wrap .register-input { padding-right: 3rem; }

/* ── TELÉFONO CON LADA (+52) ── */
.register-phone-group {
    display: flex;
    gap: 0.5rem;
}
.register-lada {
    display: flex;
    align-items: center;
    gap: 1px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 0.5rem 0 0.75rem;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.register-lada:focus-within { border-color: #2563eb; }
.register-lada i { font-size: 0.85rem; color: #64748b; }
.register-lada-input {
    width: 2.1rem;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #0f172a;
    padding: 0.8rem 0;
    text-align: center;
    background: transparent;
}
.register-phone-input { flex: 1; min-width: 0; }
.register-eye {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 1rem;
    padding: 0;
}
.register-eye:hover { color: #64748b; }
.register-submit-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.register-submit-btn:hover:not(:disabled) { background: #1d4ed8; }
.register-submit-btn:disabled {
    background: #94a3b8;
    color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.7;
}
.register-login-link {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1.25rem;
    margin-bottom: 0;
}
.register-login-link a { color: #2563eb; font-weight: 700; text-decoration: none; }
.register-login-link a:hover { text-decoration: underline; }

/* Oculta el ícono nativo de "mostrar contraseña" */
.register-input-wrap input[type="password"]::-ms-reveal,
.register-input-wrap input[type="password"]::-ms-clear {
    display: none;
}

/* Contenedor compartido de ilustración animada (layout general) */
.ilustracion-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 0 0;
    height: 320px;
}

/* Ilustración específica: registro */
.ilustracion-register svg {
    max-width: 65%;
    height: auto;
}

/* Ilustración animada (Storyset) - registro */
svg#freepik_stories-forms:not(.animated) .animable {
    opacity: 0;
}
svg#freepik_stories-forms.animated #freepik--background-complete--inject-83 {
    animation: 1s 1 forwards cubic-bezier(.36, -0.01, .5, 1.38) lightSpeedRight;
    animation-delay: 0s;
}
svg#freepik_stories-forms.animated #freepik--Floor--inject-83 {
    animation: 1s 1 forwards cubic-bezier(.36, -0.01, .5, 1.38) fadeIn;
    animation-delay: 0s;
}
svg#freepik_stories-forms.animated #freepik--Device--inject-83 {
    animation: 1s 1 forwards cubic-bezier(.36, -0.01, .5, 1.38) zoomOut;
    animation-delay: 0s;
}
svg#freepik_stories-forms.animated #freepik--Plant--inject-83 {
    animation: 1s 1 forwards cubic-bezier(.36, -0.01, .5, 1.38) slideUp;
    animation-delay: 0s;
}
svg#freepik_stories-forms.animated #freepik--Character--inject-83 {
    animation: 1s 1 forwards cubic-bezier(.36, -0.01, .5, 1.38) lightSpeedLeft;
    animation-delay: 0s;
}

@keyframes lightSpeedRight {
    from {
        transform: translate3d(50%, 0, 0) skewX(-20deg);
        opacity: 0;
    }
    60% {
        transform: skewX(10deg);
        opacity: 1;
    }
    80% {
        transform: skewX(-2deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes zoomOut {
    0% {
        opacity: 0;
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: inherit;
    }
}
@keyframes lightSpeedLeft {
    from {
        transform: translate3d(-50%, 0, 0) skewX(20deg);
        opacity: 0;
    }
    60% {
        transform: skewX(-10deg);
        opacity: 1;
    }
    80% {
        transform: skewX(2deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .register-wrapper { margin: 0 1rem 1rem 1rem; width: calc(100% - 2rem); }
    /* En desktop el panel izquierdo (azul, decorativo) es 3 veces más ancho
       que el derecho (formulario) — se ve bien porque hay espacio de sobra.
       En tablet esa misma proporción deja al formulario con muy poco ancho
       real, y por eso "Apellido paterno"/"Apellido materno" (que van uno
       junto al otro) se apretaban y se veían deformados. Aquí se rebalancea
       para que el formulario tenga espacio cómodo. */
    .register-left { flex: 1; }
    .register-right { flex: 1; padding: 2rem; }
    .register-hero { font-size: 1.6rem; }
    .deco-zone { padding: 0 0 1rem 0; }
}
@media (max-width: 767px) {
    .register-wrapper { flex-direction: column; margin: 0; width: 100%; border-radius: 0; box-shadow: none; }
    .register-left { display: none; }
    .register-right { padding: 2rem 1.5rem; min-height: calc(100vh - 80px); }
    .register-form-wrap { max-width: 100%; }
}