* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', sans-serif;
    }
    
    /* Clases para controlar visibilidad en móvil/desktop */
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }

    body {
        height: 100vh;
        overflow: hidden;
        position: relative;
    }

    .background {
        width: 100%;
        height: 100vh;
        background: linear-gradient(rgba(0, 0, 10, 0.8), rgba(0, 0, 10, 0.8)), url('../img/bg.jpg');
        background-size: cover;
        background-position: center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }
    
    .btn-volver {
    display: flex;
    height: 45px;
    width: 180px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    letter-spacing: 1px;
    transition: all 0.2s linear;
    cursor: pointer;
    border: none;
    margin-top: 40px;
    margin-right: auto;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    position: relative;
    z-index: 10;
    }

.btn-volver > svg {
 margin-right: 5px;
 margin-left: 5px;
 font-size: 20px;
 transition: all 0.4s ease-in;
}

.btn-volver:hover > svg {
 font-size: 1.2em;
 transform: translateX(-5px);
}

.btn-volver:hover {
 box-shadow: 9px 9px 33px #d1d1d1, -9px -9px 33px #ffffff;
 transform: translateY(-2px);
}

    .left-content {
        color: white;
        max-width: 500px;
        position: absolute;
        top: 50%;
        left: 10%;
        transform: translateY(-50%);
        z-index: 15;
    }

    .logo {
        font-family: 'Playfair Display', serif;
        font-style: italic;
        font-size: 5rem;
        margin-bottom: 6rem;
    }

    .tagline h1 {
        font-size: 2.5rem;
        font-weight: 500;
        margin-bottom: 1.5rem;
    }

    .tagline p {
        font-size: 1rem;
        line-height: 1.6;
        font-weight: 300;
    }

    .dots {
        display: flex;
        gap: 10px;
        margin-top: 3rem;
    }

    .dot {
        width: 50px;
        height: 3px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 1px;
    }

    .dot.active {
        background-color: white;
    }


    .form-container {
        background-color: white;
        border-radius: 20px 20px 0 0;
        width: 700px;
        max-width: 90%;
        padding: 40px 50px;
        position: absolute;
        bottom: 0;
        right: 5%;
        height: 85vh;
        overflow-y: auto;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        z-index: 5;
    }

    .form-header {
        margin-bottom: 2rem;
    }

    .start-text {
        font-size: 0.9rem;
        color: #666;
    }

    .form-header h2 {
        font-size: 2.5rem;
        font-weight: 600;
        margin-top: 0.5rem;
    }

    .form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 1.5rem;
    }

    .form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        color: #666;
    }

    input,
    .select-selected {
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        width: 100%;
    }

    input:focus {
        outline: none;
        border-color: #999;
    }

    .date-input-container,
    .password-input-container {
        position: relative;
    }

    .calendar-icon,
    .toggle-password {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #666;
    }

    /* Ocultar el icono nativo del navegador para input type="date" */
    input[type="date"]::-webkit-calendar-picker-indicator {
        display: none;
        -webkit-appearance: none;
    }

    input[type="date"]::-webkit-inner-spin-button,
    input[type="date"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Para Firefox */
    input[type="date"] {
        -moz-appearance: textfield;
    }


    .custom-select {
        position: relative;
        cursor: pointer;
    }

    .select-selected {
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        color: #aaa;
        background-color: #f8f8f8;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .select-selected::after {
        content: '';
        border-style: solid;
        border-width: 5px 5px 0 5px;
        border-color: #aaa transparent transparent transparent;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .select-items {
        position: absolute;
        background-color: white;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-top: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .select-hide {
        display: none;
    }

    .select-items div {
        padding: 15px;
        cursor: pointer;
    }

    .select-items div:first-child {
        border-bottom: 1px solid #eee;
    }

    .select-items div:hover {
        background-color: #f8f8f8;
    }


    .register-btn {
        width: 100%;
        padding: 15px;
        background-color: #111;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .register-btn:hover {
        background-color: #333;
    }


    .divider {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 1.5rem 0;
    }

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #ddd;
    }

    .divider span {
        padding: 0 10px;
        color: #666;
        font-size: 0.9rem;
    }


    .google-btn {
        width: 100%;
        padding: 12px;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        font-size: 0.9rem;
    }

    .google-btn img {
        width: 20px;
        height: 20px;
    }


    .login-link {
        text-align: center;
        margin-top: 2rem;
        font-size: 0.9rem;
        color: #666;
    }

    .login-link a {
        color: #000;
        text-decoration: none;
        font-weight: 600;
    }


    @media (max-width: 1200px) {
        .form-container {
            width: 600px;
            right: 50%;
            transform: translateX(50%);
        }

        .left-content {
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            top: 25%;
        }
    }

    @media (max-width: 768px) {
        body {
            overflow-y: auto;
            height: auto;
            min-height: 100vh;
            padding-top: 40px;
        }
        
        .background {
            position: fixed;
            height: 100vh;
            z-index: 1;
        }
        
        .form-container {
            position: relative;
            width: 90%;
            max-width: 400px;
            margin: 0 auto;
            padding: 20px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            margin-top: 180px;
            margin-bottom: 40px;
            transform: none;
            right: auto;
            height: auto;
            overflow-y: auto;
            max-height: none;
            z-index: 5;
        }

        .left-content {
            position: fixed;
            width: 100%;
            top: 40px;
            left: 0;
            transform: none;
            text-align: center;
            color: white;
            z-index: 1000;
            pointer-events: none;
        }
        
        .left-content .btn-volver {
            pointer-events: auto;
        }

        .logo {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }
        
        .tagline {
            display: none;
        }
        
        .dots {
            display: none;
        }
        
        /* Cambiar visibilidad para móviles */
        .desktop-only {
            display: none;
        }
        
        .mobile-only {
            display: block;
        }
        
        .btn-volver {
            width: 140px;
            height: 38px;
            margin: 0 auto 30px auto;
            font-size: 12px;
            z-index: 1000;
            display: flex;
            background-color: rgba(255, 255, 255, 0.9);
        }
    }

    @media (max-width: 576px) {
        .form-row {
            flex-direction: column;
            gap: 1rem;
        }

        .form-container {
            width: 95%;
            padding: 15px;
            height: auto;
            max-height: calc(100vh - 200px);
            overflow-y: auto;
        }

        .form-header h2 {
            font-size: 1.8rem;
        }

        .logo {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        .left-content {
            margin-top: 30px;
            margin-bottom: 15px;
        }
        
        .btn-volver {
            width: 120px;
            height: 36px;
            margin: 0 auto 20px auto;
            font-size: 11px;
            z-index: 25;
        }
    }

    /* Media query para pantallas muy pequeñas */
    @media (max-width: 360px) {
        .form-container {
            padding: 15px;
            height: 85vh;
        }
        
        .left-content {
            top: 8%;
        }
        
        .logo {
            font-size: 3.5rem;
            margin-bottom: 0;
        }
        
        .btn-volver {
            width: 120px;
            height: 36px;
            margin-left: auto;
            font-size: 11px;
            z-index: 30;
        }
    }
    
    /* Estilos para requisitos de contraseña */
    .password-requirements {
        margin-top: 10px;
        padding: 15px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .password-requirements p {
        margin: 0 0 8px 0;
        font-weight: 600;
        color: #495057;
    }

    .password-requirements ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .password-requirements li {
        padding: 3px 0;
        transition: color 0.3s ease;
        color: #dc3545;
    }

    .password-requirements li:before {
    content: '';
    margin-right: 8px;
}

/* Estilos para errores de fecha */
.date-error {
    margin-top: 5px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 0.85rem;
    font-weight: 500;
}