﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    min-height: 100vh;
}

/* CONTENEDOR PRINCIPAL - SPLIT SCREEN */
.split-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* LADO IZQUIERDO - IMAGEN ESPACIAL DE FONDO */
.left-panel {
    flex: 1;
    position: relative;
    background-image: url('https://images.pexels.com/photos/998641/pexels-photo-998641.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    color: white;
}

    /* Overlay oscuro para que el texto sea legible */
    .left-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 100%);
        z-index: 0;
    }

.brand-content {
    text-align: center;
    max-width: 400px;
    z-index: 1;
    position: relative;
}

.brand-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.brand-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.brand-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 32px;
}

.brand-features {
    text-align: left;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

    .feature span:first-child {
        font-size: 20px;
    }

/* LADO DERECHO - FORMULARIO */
.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 48px;
}

/* REGISTRO - SCROLL CORREGIDO */
.right-panel-scroll {
    overflow-y: auto;
    max-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 40px 48px;
}

    .right-panel-scroll .card {
        margin: 20px 0;
    }

    .right-panel-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .right-panel-scroll::-webkit-scrollbar-track {
        background: #eef2f6;
        border-radius: 10px;
    }

    .right-panel-scroll::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

.card {
    width: 100%;
    max-width: 440px;
}

/* WELCOME BADGE */
.welcome-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #667eea;
    margin-bottom: 16px;
}

/* TITULO */
.card h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 14px;
    color: #5c6a7f;
    margin-bottom: 32px;
}

/* INPUTS */
.input {
    width: 100%;
    padding: 12px 0;
    margin: 4px 0 16px 0;
    border: none;
    border-bottom: 1.5px solid #e3e8ee;
    background-color: transparent;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .input:focus {
        outline: none;
        border-bottom-color: #667eea;
    }

/* LABEL */
label {
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    display: block;
    color: #1a1f36;
}

    label:first-of-type {
        margin-top: 0;
    }

/* OPCIONES */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin: 16px 0 28px 0;
}

    .options label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: normal;
        margin: 0;
    }

    .options a {
        text-decoration: none;
        color: #667eea;
        font-size: 13px;
        transition: color 0.2s;
    }

        .options a:hover {
            color: #4c51bf;
            text-decoration: underline;
        }

/* BOTON PRINCIPAL */
.btn {
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    }

/* DIVIDER */
.divider {
    text-align: center;
    margin: 28px 0 20px;
    color: #9aa6b5;
    font-size: 12px;
    position: relative;
}

    .divider::before,
    .divider::after {
        content: "";
        display: inline-block;
        width: 60px;
        height: 1px;
        background: #e3e8ee;
        margin: 0 12px;
        vertical-align: middle;
    }

/* BOTONES SOCIALES */
.social {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

    .social button {
        flex: 1;
        padding: 10px;
        border-radius: 40px;
        border: 1px solid #e3e8ee;
        background: white;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.2s ease;
        color: #1a1f36;
        font-size: 14px;
    }

        .social button:hover {
            background: #f8f9fa;
            border-color: #667eea;
        }

/* LINK */
.link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #5c6a7f;
}

    .link a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
    }

        .link a:hover {
            text-decoration: underline;
        }

/* CHECKBOX */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

/* FOTO PREVIEW */
.foto-container {
    margin: 8px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foto-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: #f8f9fa;
    border: 2px solid #667eea;
    margin-bottom: 12px;
}

.foto-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa6b5;
    font-size: 11px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    margin-bottom: 12px;
}

/* FILEUPLOAD */
input[type="file"].input {
    padding: 8px 0;
    border-bottom: none;
    font-size: 13px;
}

/* TÉRMINOS */
.terms {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #9aa6b5;
}

    .terms a {
        color: #667eea;
        text-decoration: none;
    }

        .terms a:hover {
            text-decoration: underline;
        }

/* SIDEBAR */
.sidebar {
    width: 280px;
    height: 100vh;
    background: #1e293b;
    color: white;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* CONTENIDO */
.contenido {
    margin-left: 280px;
    padding: 20px;
}

/* SCROLL BONITO */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #0f172a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .container {
        display: flex;
        width: 100%;
        min-height: 100vh;
    }

    .left-panel {
        padding: 48px 24px;
        min-height: 350px;
    }

    .brand-content h1 {
        font-size: 32px;
    }

    .right-panel {
        padding: 24px;
    }

    .right-panel-scroll {
        padding: 24px;
    }

    .foto-input-group {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
    }

    .btn-preview {
        background: #6c757d;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
    }

        .btn-preview:hover {
            background: #5a6268;
        }

    .error-label {
        color: #dc3545;
        font-size: 12px;
        margin-top: 5px;
        display: block;
    }

    .foto-preview {
        max-width: 150px;
        max-height: 150px;
        border-radius: 10px;
        margin-top: 10px;
        border: 2px solid #ddd;
        padding: 5px;
    }



    /* ESTILOS DASHBOARD*/

    /* Agregar al final del archivo styles.css existente */

    /* Summary Items */
    .stats-summary {
        margin-top: 20px;
    }

    .summary-item {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .summary-label {
        font-weight: 600;
        color: #6c757d;
    }

    .summary-value {
        font-weight: 700;
        color: #2c3e50;
        font-size: 18px;
    }

    /* Activity Stats */
    .activity-stats {
        margin-top: 20px;
    }

    .activity-item {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #e9ecef;
    }

    .activity-label {
        font-weight: 600;
        color: #6c757d;
    }

    .activity-value {
        font-weight: 700;
        color: #2c3e50;
    }

    /* Estado badges */
    .estado-activo {
        color: #27ae60;
        font-weight: 600;
    }

    .estado-inactivo {
        color: #e74c3c;
        font-weight: 600;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .chart-container {
            overflow-x: auto;
        }

        .data-grid {
            font-size: 12px;
        }

            .data-grid th,
            .data-grid td {
                padding: 8px;
            }
    }

    /* Loading animation */
    .loading {
        text-align: center;
        padding: 40px;
    }

        .loading i {
            font-size: 40px;
            color: #3498db;
            animation: spin 1s linear infinite;
        }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }
}   



